Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
helper_scripts [2013/06/28 12:10] beandog |
helper_scripts [2013/06/28 12:11] beandog |
||
---|---|---|---|
Line 5: | Line 5: | ||
=== avi2mpg === | === avi2mpg === | ||
- | <code> | + | <code bash> |
- | #!/bin/sh | + | #!/bin/bash |
F=`basename $1 .avi` | F=`basename $1 .avi` | ||
MPG=${F}.mpg | MPG=${F}.mpg | ||
Line 22: | Line 22: | ||
</code> | </code> | ||
+ | === confcat === | ||
+ | |||
+ | Strip all empty strings and commented strings | ||
+ | |||
+ | <code> | ||
+ | #!/bin/bash | ||
+ | grep -vh '^#' "$@" | grep -v '^$' | ||
+ | </code> | ||
=== dumpchapters === | === dumpchapters === |