|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Removing Lines Shared by Multiple Files
Hey everyone, I have a question about comparing two files. I have two lists of files. The first list, todo.csv, lists a series of compounds my supervisor wants me to perform calculations on. The second list, done.csv, lists a series of compounds that I have already performed calculations on. However, the two lists overlap, and I am interested in reducing redundancy. So my question; is there any way to remove all lines from todo.csv that also occur in done.csv? I suspect awk could be used to do the trick, but I am not really sure how. Any help would be greatly appreciated.
|
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Take a look at two commands - COMM and DIFF
|
| The Following User Says Thank You to joeyg For This Useful Post: | ||
Stuart Ness (06-18-2012) | ||
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Ah, thank you very much. I had no idea the comm command existed.
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing multiple lines but not the next attribute | LCol | Shell Programming and Scripting | 3 | 03-09-2011 08:47 PM |
| Removing Multiple lines below a keyword using SED? | deaconf19 | Shell Programming and Scripting | 2 | 02-10-2011 08:31 AM |
| PERL: removing blank lines from multiple files | hcclnoodles | Shell Programming and Scripting | 11 | 09-20-2009 03:05 PM |
| removing multiple lines of text in a file | spartan22 | UNIX for Dummies Questions & Answers | 3 | 02-20-2009 04:35 PM |
| removing pattern which is spread in multiple lines | sabyasm | Shell Programming and Scripting | 2 | 05-13-2008 05:19 AM |
|
|