commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Join command combines lines from two files based on a common field.
Lets say you have a file with the following layout:
You want the file to look like this:
This perl command does it for you.
print the lines of a file in randomized order
This will show where your Perl installation is looking for modules.
joins multiple lines to create single line with comma separated values. for example if we have an email addresses one per line (copy&paste from spreadsheet) it will oputput one line with comman separated addresses to put it to email client.