-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/05/2010 04:38:25, Fbsd1 wrote: > I want to search every line in the specified file for a literal and if > found then delete that line from the file and save the file all from > within a sh type of shell script. > > Does anyone have a example they would share with me?
grep -v 'literal' < file > file.new Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvnopEACgkQ8Mjk52CukIxlzgCfW1u7k0O1BZ5gCM5emVUfJJGk 80IAn100dDD01WMkTrXXE3NI88Ohd/ZK =6nDd -----END PGP SIGNATURE----- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"