Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/

Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Hide

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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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:

Hide

News

2012-05-20 - test
test
2012-05-20 - test
test
2012-05-20 - test
test
2012-05-20 - Test tweets
YU not working?
Hide

Tags

Hide

Functions

Single Line Twitter-Tracker

Terminal - Single Line Twitter-Tracker
WRDS="word1 word2 wordN"; while [ 1 ];do curl -s http://twitter.com/statuses/public_timeline.rss |grep '<description>' |cut -d '>' -f 2 |cut -d '<' -f 1 > .twitt.tmp && for word in $WRDS;do grep --color=auto -i $word .twtt.tmp;done;sleep 300;done
2009-07-15 18:30:02
User: ksaver
Functions: cut grep
1
Single Line Twitter-Tracker

Search [or track] for a list of words, in the Twitter Public Time Line. Connect every 5 min to get new results [due to the "150 per hour" rate limit].

(More info: http://bit.ly/qQaji)

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Another version, less chars, changing grep's default red color:

lst="word1 w2, wN"; while $t;do curl -s http://twitter.com/statuses/public_timeline.rss |html2text > .twtmp && for w in $lst;do GREP_COLOR="1;32" grep --color -i $w .twtmp;done;sleep 150;done

What version do you preffer?

Comment by ksaver 149 weeks ago

In addition, you can add param "-width 140" to html2text, for a better look

Comment by ksaver 149 weeks ago

This one just works also...

while $t;do curl -A Mozilla -s http://twitter.com/public_timeline |html2text -width 30 |GREP_COLOR="1;32" grep -ni -C3 --color=auto "potter";sleep 5; done

Comment by ksaver 148 weeks and 6 days ago

Your point of view

You must be signed in to comment.

Related sites and podcasts