--
$ 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:    [EMAIL PROTECTED]
Web site: http://tony.abou-assaleh.net
----------------------[THE END]----------------------


Reply via email to