commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Make sure that find does not touch anything other than regular files, and handles non-standard characters in filenames while passing to xargs.
There is 1 alternative - vote for the best!
The grep switches eliminate the need for awk and sed. Modifying vim with -p will show all files in separate tabs, -o in separate vim windows. Just wish it didn't hose my terminal once I exit vim!!
This will drop you into vim to edit all files that contain your grep string.
saves one command. Needs GNU grep though :-(
needs no GNU tools, as far as I see it
If you can do better, submit your command here.
You must be signed in to comment.