When I do a major change in my entities, I want to find a way to find all my Entities names and create the commande for me. So instead of doing ls src/Your/OwnBundle... and then do it manually, this helps a lot. Show Sample Output
Sometimes cache-files or garbage gets added to your SVN repository. This is the way I normally clean up those when the actual files are already gone.
Doesn't depend on curl and doesn't use thumbnails as wallpaper (which has the unfortunate effect of only allowing imgur links)
Using a for loop, rename all files with .MP3 extension to .mp3. Show Sample Output
you could redirect output to /dev/NULL
This simple command removes all the .svn directories recursively. Useful when you want to get a clean code excluding .svn files. Check what is getting delete through this command " find . -name '.svn' -type d | xargs echo "
This will check if there are any empty directories, or newly emptied directories, in a list of directories. It will then delete all of those directories. It works with gnu find and OSX/BSD find.
You can also use gawk: ps auxww | gawk '/application/' | gawk '/processtobekilled/' | gawk '{print $2}' | grep -v grep | xargs kill -9
In the example suppose we want to move all *.rar files in the current folder to a backupfolder
Allows to change 'shell' compatible files execution bit even if their name is not *.sh
Couldn't make the other work so I made this
touch -t 201208211200 first ; touch -t 201208220100 last ; creates 2 files: first & last, with timestamps that the find command should look between: 201208211200 = 2012-08-21 12:00 201208220100 = 2012-08-22 01:00 then we run find command with "-newer" switch, that finds by comparing timestamp against a reference file: find /path/to/files/ -newer first ! -newer last meaning: find any files in /path/to/files that are newer than file "first" and not newer than file "last" pipe the output of this find command through xargs to a move command: | xargs -ifile mv -fv file /path/to/destination/ and finally, remove the reference files we created for this operation: rm first; rm last;
In case you ever got to many arguments using rm to delete multiple files matching a pattern this will help you
Uses the --porcelain option, which is garanteed to be stable among git versions and configurations - also, is way easier to parse. Show Sample Output
This is the closest you can get to "reset printing system" from the command line. Giving credit back to J D McIninch from an apple forum back in 2009.
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: