Mark McLogan wrote:
> 
> Hi every body
> I want delete some lines of a file
> I  desire to erase the lines that contain the word " home "  since I can
> make to eliminate these lines in the text if I have this word content in a
> variable $var

Who has the luck to use a real OS, not a baby tool :-), 
has the system tool grep to solve the problem.

What a luck, perl got this tool too.

Some oneliners to solve problem:
perl -e "print grep {! /home/} (<>)" your_file >file_without_home_lines
(is good for small files)

perl -e "{/home/ || print} while (<>)" your_file >file_without_
(works good, but is 2 chars longer)

And of course, Jeff has shown us the standard way.

Best Wishes,
Andrea

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to