use fsnotify on linux, fswatch on OS-X
another possibility
uuencode the file to appear as an attachment
Use bc for decimals...
Clock will appear in the top-right corner
You don't need to use "*", it will fail if the working directory has too many fails due parameter extension, you can simply pass the working directory using ".".
All files in the directory will be renamed replacing every space in the filename by "_" (underline) and converting upper case characters to lower case characters. e.g. Foo Bar.txt --> foo_bar.txt
more variety
Get the current cpu % usage on your system. Show Sample Output
cut log from line 50 to line 88
I use this with alias: alias lsl="ls -1F | grep @ | sed 's/@//' | column"
Just want to show the "+" usage in the grep command. And if using egrep, thing would be a little bit easier: grep -n "arrname\[[[:digit:]]+\]" filename Show Sample Output
This is helpful when approaching a new codebase and wondering where the bulk of the code is located Show Sample Output
Useful in scripts to compare known malicious IP addresses with what you are actually blocking. Show Sample Output
Find music types on your current location and will play them randomly with mpv/mplayer.
Parses tektronic given csv files for both channel 1 and channel 2 and joins them together. Can be easily used by gnuplot after that.
Update a Mandriva Linux system with any pending updates. This command needs to be run with root privilege. Using the "--force" option answers "yes" to any interactive prompts thus allowing the updates to be left unattended to completion. NB if there is an update for glibc and/or a new kernel then the system would need to be rebooted for these to take effect. A prerequisite for running "urpmi --auto-update" is to have correctly defined urpmi media sources (which can be done by visiting http://easyurpmi.zarb.org/). If there are no new updates the the message "Packages are up to date" is shown. Show Sample Output
Can be used in a working copy to output the URL (extracted from svn info), or as part of another function, as $(svnurl some/path). Saves a lot of time in my SVN workflow.
More straightforward. Show Sample Output
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.
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
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: