[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

awk or sed?



Hi,

[Sorry if this is off-topic.]

I have two files say, file1 and file2

file1 contains:            file2 contains:
alpha                      alpha                    
bravo
charlie

What I want to do is compare the two files, and delete the contents of
file1 according to file2. So, from the above, I'll have to delete the word
alpha from file1. Can it be possible using sed? or awk?

thanks,

== ========== Andre M. Varon  Lasaltech Incorporated
== ==    ==== Technical Head  Fax-Tel: (034)435-0836
== ===== ==
==    == ==   E-mail  : andrelst@mozcom.com
======== ==   WebPage : http://andre.lasaltech.com


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: