[Ilugc] getting file contents

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Tue Oct 17 18:19:53 2006

On Tue, Oct 17, 2006 at 05:22:30AM -0700, Ashok Antony wrote:

hi all,

I have 2 files. ( Ex: file1 and file2 )

file1 has 15 lines and file2 has 20 lines.

in file1 15 lines are common to file2 how can I take the 5 lines from file2 
which is not in file1 ?

comm -3 file1 file2

Other related posts: