Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
helper_scripts [2013/06/28 12:09]
beandog
helper_scripts [2013/06/28 12:11]
beandog
Line 2: Line 2:
  
 This is just a collection of little scripts. This is just a collection of little scripts.
 +
 +=== avi2mpg ===
 +
 +<code bash>
 +#!/bin/bash
 +F=`basename $1 .avi`
 +MPG=${F}.mpg
 +if [[ ! -f ${MPG} ]]; then
 + mencoder $1 -o $MPG -profile dvd
 + fi
 +</​code>​
  
 === close_trays === === close_trays ===
Line 11: Line 22:
 </​code>​ </​code>​
  
 +=== confcat ===
 +
 +Strip all empty strings and commented strings
 +
 +<​code>​
 +#!/bin/bash
 +grep -vh '​^#'​ "​$@"​ | grep -v '​^$'​
 +</​code>​
  
 === dumpchapters === === dumpchapters ===
Line 68: Line 87:
 done done
 </​code>​ </​code>​
- 

Navigation