•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 391,568 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,644 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 2878 | Replies: 8
![]() |
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
Sure, you could do that. It just seems like it would be more work in my opinion. Here is the link a sed man page: http://www.rt.com/man/sed.1.html, and a sed tutorial: http://www.selectorweb.com/sed_tutorial.html, and here is info on reading files in Bash: http://www.linuxgazette.com/node/8384.
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
•
•
•
•
Originally Posted by moktod
I have two files containing users, but the lists differ. My goal is to take all the users in file1 and remove them from file2. What would be a simple method for completing this?
-moktod
look into 'man comm'
vlad
+-----------------------------------+
| #include <disclaimer.h> |
+-----------------------------------+
+-----------------------------------+
| #include <disclaimer.h> |
+-----------------------------------+
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
Similar Threads
- USB does not recognize. (Peripherals)
- Removing entries from Add/Remove Programs (Windows NT / 2000 / XP / 2003)
- about:blank problems (Viruses, Spyware and other Nasties)
- cpu usage hitting 100% (Windows NT / 2000 / XP / 2003)
Other Threads in the Shell Scripting Forum
- Previous Thread: web page statistics - my first bash script
- Next Thread: problem in reading a file



Linear Mode