The XML document can be transformed to text, XML, HTML or anything else. The --stringparam option allows to set XSL variables externally.
Accepts multiple files via logs...
. Substitute "text to grep" for your search string.
If you want to alias this, you could do something like this:
alias parse-logs='awk "/$1/{print \$1}" ${@[@]:1} | sort -n | uniq -c | sort -rn | head -n 100'
Use sed to search and replace pipes for tabs in file stream with backup
I use it after a clean CentOS 7 minimal server installation to automatically populate the /etc/hosts file. Not sure why the installation does not add this entry by itself. Tested on CentOS 7 with the simplest use case: 1 static ip address and the hostname provided during installation. Show Sample Output
This command shows if there are any locked AFS volumes. The output is a list of AFS volume IDs (or nothing if there are none locked). Show Sample Output
Use this command to insert line numbers in source files, .' ' control how spaces you insert after number. Show Sample Output
Doesn't fail for percent sign now.
Improved version of command #8425. This way, the default browser is used, as opposed to Firefox.
convert a unix timestamp to a human readable format. Show Sample Output
You can use the command "full" not only with one item, with items with diferent paths, and with relatives and absolute paths.
Had trouble with the other function, because of missing semicolons. (According to my bash on OS X)
This shows all process (-e) and threads (-L) in full format (-F) Show Sample Output
forgot to use a pv or rsync and want to know how much has been copied. Show Sample Output
Should be the notify-send package installed
Adds up the used disk space on all hard drives that are directly connected to the machine (i.e. no network mounts etc.) Assumes there are no IDE drives present. Show Sample Output
Grab the RSS link to the Picasa album. Feed it to the script when its hungry. When its done writing the shopping list, just use
wget -c -i wgetlist
to get your stuff.
sudo is optional, but to find out about all files, it is nice, or else run as superuser, ie: su -c 'du -sm * | sort -n' Show Sample Output
This command will : -Archive all *.dmp files individually (one file per archive) from current directory . -Delete original file after has been compressed.
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: