Oneliner

Files without comments

Use *awk to remove comment lines that start with a ‘#’ making it easier to view the actual configurations/settings

cat /path/to/file | awk '!/^#/ {print $0}'

[Edit]

To remove the blank lines as well as the comments, alter the awk command to

awk '!/^#|^$/ {print $0}'
Comments Off more...

Batch convert audio files

Simple one-liner to batch convert one type of audio file to another using ffmpeg. The example converts .ogg to .mp3 files:

for x in *.ogg; do ffmpeg -i "$x" "`basename "$x" .ogg`.mp3"; done

Copyright © 1996-2010 BSDnexus. All rights reserved.
Jarrah theme by Templates Next | Powered by WordPress