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:
This version uses the indent C formatting utility. Doesn't appear to be included with ubuntu. But CentOS and MacOS have it.
There is 1 alternative - vote for the best!
use -iname \*[.ch] instead of -iname \*.c -o -iname \*.h
indenting all the files at a time, if the file has local variable for indentation style its even better.
This one liner is not pretty but it does the job.
Use find's exec and reduce the need for multiple evals with a progn wrapper.
If you can do better, submit your command here.
You must be signed in to comment.