home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!think.com!spdcc!merk!esplanade!robertl
- From: Robert_La_Ferla@hot.com
- Subject: Re: grepping, fgrepping, and egrepping
- Message-ID: <1992Dec12.134911.1133@hot.com>
- Sender: robertl@hot.com
- Reply-To: Robert_La_Ferla@hot.com
- Organization: Hot Technologies
- References: <1992Dec11.01531.7421@ms.uky.edu>
- Date: Sat, 12 Dec 1992 13:49:11 GMT
- Lines: 14
-
- In article <1992Dec11.01531.7421@ms.uky.edu> The Iguana writes:
- > Is there anyway to get GREP to take a given string or character
- > and return the result of validating a string WITHOUT these?
- >
- > fgrep -v 'string' <-- will return all LINES that don't have 'string'
- > in them. But I need a process that will read in a string and output
- > every character EXCEPT those in the string.
-
- In other words, you want to remove all occurrences of a string from a text
- file or stream? Use "sed" or "awk".
-
- Robert La Ferla
- Hot Technologies
-
-