Can somebody help me with a script ....
Read a file /etc/inittab
find the string starting with rcml and move it entirely towards the end of file.
rcml:2:once:/usr/sni/aix52/rc.ml > /dev/console 2>&1
I basically want to change the startup sequence.
awk '/^rcml:/ { rcml = $0; next }
{ print }
END { print rcml }' /etc/inittab
Thankyou cfajohson,
Im try to run it over the rsh for a remote server but do not get the desired output...
rsh apple-admin awk '/^NUMID_hr/ { NUMID_hr = $0; next } { print } END { print NUMID_hr }' long_list ">" /tmp/long_list.rtest
Am I doing something wrong here ?