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 11:58]
beandog
helper_scripts [2013/06/28 12:11]
beandog
Line 3: Line 3:
 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 ===
 +
 +<code bash>
 +#!/bin/bash
 +eject -t /dev/dvd
 +eject -t /dev/dvd1
 +</​code>​
 +
 +=== confcat ===
 +
 +Strip all empty strings and commented strings
 +
 +<​code>​
 +#!/bin/bash
 +grep -vh '​^#'​ "​$@"​ | grep -v '​^$'​
 +</​code>​
  
 === dumpchapters === === dumpchapters ===
Line 60: Line 87:
 done done
 </​code>​ </​code>​
- 
- 

Navigation