![]() |
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 |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 08:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 06:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | SuSE | 5 | 07-30-2007 08:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 04:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 09:44 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Command Help!
Hello Everyone,
Ok lets say I have 2 files: allusers.txt and specificusers.txt The allusers.txt is a list of all usernames, and specificusers.txt has only about 10 usernames (of allusers.txt). If allusers.txt has 100 usernames, how do I show the remaining 90 usernames? I tried the diff and commm command and it doesnt work. I tried: comm -13 specificusers.txt allusers.txt > Show.txt comm -23 specificusers.txt allusers.txt > Show1.txt cat Show.txt Show1.txt > Main.txt Ok the Main.txt has repeats of the usernames i need deleted. Is there anything that deletes duplicate lines in Main.txt (when i say duplicate, i mean the duplicated line & also the original), so it would show the 90 that arent in the specificusers.txt file. (if you have another method, please help!!!) THANK YOU! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|