ODOC: comm

Friday, November 11, 2005

comm - Compare 2 Sorted files line by line

Summary :

Compare two sorted files F1 and F2 line by line.

Examples :
$ comm F1 F2 -- Output contain 3 col. Col 1 - Uniq to F1, Col 2 - Uniq to F2 and Col 3 - Comman to F1 & F2

$ comm -1 F1 F2 -- Suppress lines unique to F1

$ comm -2 F1 F2 -- Suppress lines unique to F2

$ comm -3 F1 F2 -- Suppress comman lines to F1 & F2

$ comm -13 F1 F2 -- Show lines from F2, which is not in F1

$ comm -23 F1 F2 -- Show lines from F1, which is not in F2

Read : man comm

comments links to this post Listen to this article Listen to this article

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

Previous Posts


referer referrer referers referrers http_referer

  • Subscribe to Free Software Blog
  • Google
Reader
  • Subscribe in Yahoo
  • Subscribe
in Bloglines
  • Link to Podcast

(RSS feed) for this blog
    Computers Blog Top Sites
  • Computers Blogs by Indian Bloggers
  • BLogstreet Profile

Sponsors