Recursively changes every file case to lowercase
print sum of disk usage for filetype within current dir and subdirs Show Sample Output
An easy way to send all directories to a bash script, it makes it recursive
find pictures recursively in a specified folder and renames the file name to originalname_containingfoldername.jpg
finds all epub files in the current directory and all child directories and converts them to .mobi format. all of the ebook-convert -options are optional; the only parameters you are required to pass are the incoming file and the outgoing file, with the extension. Has been tested on Ubuntu 10.10
-exec sh -c 'var={}; do something with var' lets you do things in a sub-shell while it's faster to type, I'm not sure if dozens of subshells execute quicker than the while loops.
An advanced possibility to count the lines of code like in #8394 Show Sample Output
extracts path to each md5 checksum file, then, for each path, cd to it, check the md5sum, then cd - to toggle back to the starting directory. greps at the end to remove cd chattering on about the current directory.
1) Find true type fonts; 2) Copy them to /usr/share/fonts/truetype; 3) Reload font information.
Uses UNIX time for sorting.
Replace .py with .rb or .java to get the LOC of that particular filetype. An alternative is http://www.commandlinefu.com/commands/view/2812/make-a-statistic-about-the-lines-of-code Show Sample Output
This command can be used to rename all the files with extension .xls( in this case) to .ods files. It can be used for other files with certain extension.
Uses find to find and chmod directories recursively.
If you used to do `vlc /tmp/Flash*`, but no longer can't, this is for you.
find broken symbolic links Show Sample Output
This version omits the '..' and '.' directory entries and it only prints the directory name instead of "./dir". I alias it as "lsd".
Just an alternative. Here the output of the subshell statement is a complete script for dc so you can save it, manipulate it with some other tool or just debug it with less.
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: