Download entire commandlinefu archive to single file

for x in `jot - 0 \`curl ""|grep "Terminal - All commands" |perl -pe 's/.+(\d+),(\d+).+/$1$2/'|head -n1\` 25`; do curl "$x" ; done >a.txt
This is an extension of a previous command by satyavvd on 2009-07-23 12:04:02, but this one grabs the whole archive. Hard coded numbers in previous script capped number of commands that could be fetched. This one grabs them all regardless of how big the archive gets.
Sample Output
# SSH connection through host in the middle
ssh -t reachable_host ssh unreachable_host

# A fun thing to do with ram is actually open it up and take a peek. This command will show you all the string (plain text) values in ram
sudo dd if=/dev/mem | cat | strings

# Watch Star Wars via telnet

# Backticks are evil
echo "The date is: $(date +%D)"

2009-08-25 21:57:15

What Others Think

not working
megerdin · 670 weeks ago
I haven't tested it, but I can see one potential problem: 'jot' does not come with most *nix distros, however though it does come with the OSX. I would advice the creator or end user to use 'seq'. seq 0 10
Abiden · 670 weeks ago
Watch Tamil TV Serials and TV Shows Free Online, TamilDhool Cool Collection of Tamil Serials & Shows. tamil Serial Online at TamilTwist, Latest shows of vijay tv, sun tv on , including Tamil comedy, romance, thriller, horror & family shows and more
alenaofficial · 8 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: