Thursday, April 12, 2012

Wednesday, April 11, 2012

Search everything

find FILE OR REGEX -exec xzgrep -l "PATTERN OR REGEX" {} \;

Find the file, and then search, even compressed files.

Monday, April 9, 2012

Mult-file rename.

for i in *.avi; do j=`echo $i | sed 's/find/replace/g'`; mv "$i" "$j"; done

From: http://snipplr.com/view/2736/