Commands using awk (1,418)

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

Change timestamp on a file
-a for access time, -m for modification time, -c do not create any files, -t timestamp

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

List all files in a folder in a git repository by last commit date
This lists all the files in a folder, then finds the commit date for them one by one, then sorts them from newest to oldest

Make a DVD ISO Image from a VIDEO_TS folder on MacOSX
/path/ is the root folder of the DVD, not the VIDEO_TS folder.

check python syntax in vim

Send command to all terminals in a screen session

replace XX by YY in the the current directory and cd to it. ( in ZSH )
If you are in /begin/path/with/XX/pattern cd XX YY will change your current directory to /begin/path/with/YY/pattern in ZSH

Search some text from all files inside a directory

tar pipe to copy files, alternate to cp -Ra
uses tar to dump files from /orignl/path to /dst/dir. i find tar's out more readable than cp, and it doesn't mess with modified dates.

Find broken symlinks
Locate broken symlinks in the current directory. Also useful, to remove broken links: $ find . -type l ! -exec test -e {} \; -print0 | xargs -0 rm


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: