![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deleting double entries in a log file | opusforum | Shell Programming and Scripting | 7 | 03-13-2009 04:42 AM |
| Deleting the files comparing the creation dates | pssandeep | UNIX for Dummies Questions & Answers | 2 | 04-10-2008 10:54 AM |
| How to create a list of entries without vi | mpc8250 | Shell Programming and Scripting | 3 | 02-13-2008 03:56 AM |
| Searching list of entries in file for actual files in dir | not4google | UNIX for Dummies Questions & Answers | 2 | 10-18-2006 11:24 AM |
| Comparing a distinct value in 1 list with another list | manualvin | Shell Programming and Scripting | 6 | 06-22-2004 06:42 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have a list of names and I want to basically take each name and search a given file to see if the name is in that file. If it is then delete the name from the list and if it isn't then leave it. Anyone know how to script something like this. Here's an example of what I mean: List 1: Tom Bob John Dave List 2: Anthony Ed Bob Dave Comparing List 1 to List 2 results in List1 being: Tom John And just to note, List 2 might not be a list, could just be a text document with the names in there but the script should work about the same way. Can anyone help with this? Thanks! Last edited by eltinator; 08-14-2007 at 04:37 PM.. Reason: Correction |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|