home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7699 < prev    next >
Encoding:
Text File  |  1992-12-12  |  932 b   |  27 lines

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