Re: mit sed ausgabeumleitung-folge ersetzen
moin, christian,
danke, das war´s !
ich blödmann hab natürlich die hochkommata vergessen ... ;-)
ich hatte testweise mal ping duch ping ersetzt - ohne hochkommata, das
ging:
# sed 's/\&>/>\&/g' test
5 6-20 * * 1-5 root syscheck > /dev/null 2>&1
*/3 * * * 1-5 root ping -c 10 1.1.2.7 > /dev/null 2>&1
22 7 * * * * root /etc/init.d/ipsec start > /dev/null 2>&1
# sed s/ping/pong/g test
*/3 * * * 1-5 root pong -c 10 1.1.2.7 > /dev/null 2&>1
danke & gruss
lars
Reply to: