Cpu(s): 28.1% us, 9.5% sy, 3.0% ni, 48.6% id, 9.9% wa, 0.2% hi, 0.7% si PID NI %CPU %MEM COMMAND 20707 19 0.0 0.1 sh -c S=askapache;R=htaccess;find . -type f|xargs -P5 -iFF grep -l -m1 "$S" FF|xargs -P5 -iFF sed -i -e s%${S}%${R}% FF 20708 19 2.0 0.0 find . -type f 20709 19 2.0 0.0 xargs -P5 -iFF grep -l -m1 askapache FF 20710 19 0.5 0.0 xargs -P5 -iFF sed -i -e s%askapache%htaccess% FF 23291 19 0.0 0.0 grep -l -m1 askapache ./servers/util_ldap_cache_mgr.c.html 23293 19 0.0 0.0 grep -l -m1 askapache ./servers/util_md5.c.html 23308 19 0.0 0.0 grep -l -m1 askapache ./servers/waitio.c.html 23310 19 0.0 0.0 grep -l -m1 askapache ./servers/winconfig.h.html 23311 19 0.0 0.0 grep -l -m1 askapache ./servers/wintty.c.html 23265 19 0.0 0.1 sed -i -e s%askapache%htaccess% ./servers/apr_uri.h.html 23266 19 0.0 0.0 sed -i -e s%askapache%htaccess% ./servers/apr_uri.c.html 23267 19 0.0 0.0 sed -i -e s%askapache%htaccess% ./servers/apr_time.h.html 23268 19 0.0 0.0 sed -i -e s%askapache%htaccess% ./servers/apr_user.h.html 23269 19 0.0 0.0 sed -i -e s%askapache%htaccess% ./servers/apr_strmatch.h.html
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
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: