Re: How to use sed to remove a line from a cron file and also remove all commented lines directly above it

'Cameron Simpson' <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 09Jul2012 21:56, Van Handel <[email protected]> wrote:
| Thanks.  I think I even understand it.  I'll try it at work tomorrow.
| This will be a general-use great tool to have for running software updates
| where the same command needs to go into a cron file with small changes, like
| a new option.
| (also fstab, log4j xml files, etc)

Um, one thing to note: the example sed script supplied may well eat the final
line of the file. You may need to pad the file with a blank line for safety. 
Test it thoroughly.

Cheers,
-- 
Cameron Simpson <[email protected]>

I am reminded of a memorable scene in "Falling Down", starring Michael
Douglas. In fact, I'm reminded of the whole damn movie, from glorious start
to amusing finish.  I nominate it as the official movie of alt.peeves.
        - mathew, [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.