Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Checking for new files

by ambrus (Abbot)
on Jan 28, 2005 at 10:21 UTC ( #425894=note: print w/replies, xml ) Need Help??


in reply to Checking for new files

Sort the two lists and compare with comm:

$ cat a one two three four five six seven $ cat b two four five six seven $ sort a > a.sorted $ sort b > b.sorted $ comm -23 a.sorted b.sorted one three $

Update 2009 sep 2.

See Re^2: Joining two files on common field for a list of other nodes where unix textutils is suggested to merge files.

Replies are listed 'Best First'.
Re^2: Checking for new files
by kelan (Deacon) on Jan 28, 2005 at 14:56 UTC

    Use zsh! :)

    $ comm -23 <(sort a) <(sort b)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://425894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-11-30 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?