[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep help with cygwin
From: |
Tony Abou-Assaleh |
Subject: |
Re: grep help with cygwin |
Date: |
Thu, 3 May 2007 15:31:50 -0300 (ADT) |
--
$ grep -v X.Y. File1.txt | grep -o ".*_[0-9]" | grep -F -f - File2.txt
>>File1.txt
--
Be careful with writing to the same file that you're reading from using
redirection. In general, it should be avoided. Use a temporary file
instead.
Cheers,
TAA
-----------------------------------------------------
Tony Abou-Assaleh
Email: address@hidden
Web site: http://tony.abou-assaleh.net
----------------------[THE END]----------------------