Posts Tagged ‘Unix’

sed one-liners

March 24, 2009

Handy one-liners for UNIX stream editor sed.

Advertisements

Remove all binaries from a directory tree

June 4, 2008

Here is a one liner that packs some serious bash punch:

rm `find . -type f -exec file ‘{}’ \; | grep -i linux | awk -F: ‘{print $1}’`