The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
shell script problem
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
shell script problem
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
11-17-2008
Christoph Spohr
Registered User
Join Date: Sep 2008
Posts: 205
Hi,
to show you the lines in only in file2 but not in file1, try:
Code:
comm -13 file1 file2
and to append them to file1
Code:
comm -13 file1 file2 >> file1
HTH Chris
Christoph Spohr
View Public Profile
Find all posts by Christoph Spohr
Find Christoph Spohr's past nominations received
Find Christoph Spohr's present nominations given