Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: help with lists

by ambrus (Abbot)
on Mar 27, 2004 at 22:39 UTC ( [id://340314]=note: print w/replies, xml ) Need Help??


in reply to help with lists

You don't even need perl for this, the unix text utilities are powerful enough.

If you don't mind that your files get sorted, you can use

join -t\| -v 1 <(sort first) <(sort second)
provided that your shell has process substitution.

(I don't want to cheat by using awk)

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (1)
As of 2024-04-24 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found