Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Delete all lines containing pattern
Name: masayako Date: January 16, 2003 at 11:44:32 Pacific OS: unix CPU/Ram: unix
Comment:
How to delete all lines containing pattern in vi? I want to delete all lines containing the pattern "abc" in a file using vi. Thanks!
Summary: ive tried all the possibilties on the sed one liners sites, and tried everything mysefl, but i cant figure it out... ive got a file, containing duplicate lines, like this delete from itm.tb_wf_object...
Summary: hi, i need to search for a pattern in files for example the content of the file is below 3555005!K!00630000078!C!20090805235959!47001231000000!16042296!336344324!A!1!ENG!0!00630000078!NO!00630000078!3...
Summary: For grep, the -v option will negate (or reverse) the result set. grep red grep -v red grep -e red -e blue -e pink grep -ve red -e blue -e pink sed can negate a pattern with ! The first sed below out...