View Single Post

  #1 (permalink)  
Old 08-13-2007, 04:21 PM
piggy piggy is offline
Junior Member
User
 
Join Date: Jul 2007
My distro: Redhat
Posts: 8
Rep Power: 0
piggy is on a distinguished road
Default diff command to exclude files that match pattern

file1:
hello /a/b/c/d/file.log
hello /a/b/c/d/file.log1
hello /a/b/c/d/1file.log
hello /a/b/c/d/1file.log1
hello /a/b/c/d/file.tmp
hello /a/c/d/file.tmp
hello /a/c/g/file.tmp

file2:
hi /a/b/c/d/file.log
hi /a/b/c/d/file.log1
hi /a/b/c/d/1file.log
hi /a/b/c/d/1file.log1
hi /a/b/c/d/file.tmp
hi /a/c/d/file.tmp
hello /a/c/g/file.tmp

how do i use diff to exclude /a/b/c/d/*log*
Reply With Quote