Just another WordPress.com site

Comm Command: (to use this command file must b first sorted like cat file|sort > file1)

for Common : comm -1 -2 file1 file2

Ignore
-1 Ignore File1
-2 Ignore File1
-3 Ignore common data

Example:
File1
1
2
3
4
5

File2
3
4
5
6
7

comm -1 -2 file1 file2 => 3,4,5

comm -1 -3 file1 file2 => 6,7

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: