/usr/bin/perl -ni -e 'if ( $_ =~ m{^#start /usr/sbin/xntpd} ) { print +"start /usr/sbin/xntpd \"\$src_running\" \"-x\"\n" } else {print}' /e +tc/rc.tcpip
In reply to Re^2: file line editor one-liner
by repcsi
in thread file line editor one-liner
by repcsi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |