-> I'm trying to edit /etc/inittab and need to use sed. I have a question.
-> How can I use sed to change off to respawn in only on occurence in this
-> file.
->
-> Below is an exapmle
->
->
-> au00:234:off:/etc/getty /dev/ttyg00 m
-> au01:234:off:/etc/getty /dev/ttyg00 m
->
-> if I do the following:
->
-> cat /etc/inittab | sed s/off/respawn > /tmp/inittab.tmp ; mv
-> /tmp/inittab.tmp /etc/inittab
Be more specific in what you want to change...
I imagine something like the following will do it:
sed -e 's/au00:234:off/au00:234:respawn/'
*shrug*
--
Gregory McLean | What I do is called 'fishing', if it were any easier
comstar.net inc. |it would be called 'catching' and there would be more
programmer/analyst |people doing it.
770 485-6016 |
----------------This is my opinion, All MINE! I tell you------------------
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.