Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: help with lists

by ambrus (Abbot)
on Mar 27, 2004 at 22:39 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-12-03 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?