Commands using grep (1,935)

What's this?

commandlinefu.com 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


Check These Out

Remove all HTML tags from a file

Convert CSV to JSON
Replace 'csv_file.csv' with your filename.

Convert text to picture
generates a picture file with the text. Some other samples in: http://www.imagemagick.org/Usage/text/

Merge various PDF files

list block devices
Shows all block devices in a tree with descruptions of what they are.

clear MyDNS-ng cache
Occasionally, to force zone updating, cache flush is necessary. This command is better than restart the mydns daemon.

Use Linux coding style in C program
put "-linux" option into $HOME/.indent.pro to make it default

Use Perl like grep
Much better alternatives - grep-alikes using perl regexps. With more options, and nicer outputs.

Forwards connections to your port 2000 to the port 22 of a remote host via ssh tunnel

Send remote command output to your local clipboard
This command will copy command's output into your local clipboard


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: