All pastes #614674 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-11 18:33 UTC
rendered paste body
#!/bin/bash
# a script to get the metadata on a title, then test if certain values are correct

set TITLE=/assets/1-COMPLETE/100girls_2001/wmv/83ED4DA2-AC0A-4819-87B8-1531EEC5061E/100girls_2001.wmv
set TITLE1="`echo $TITLE|cut -d/ -f4`"
set PROG=/usr/local/bin/mlasfview
set ARG1=MaxBitRate
set ARG2=4000000
set PROG1="awk -F, '/$ARG1/ {print $2}'"
set DIR=/opt/gavin/check_metadata

if [ "$PROG" "$TITLE" |"$PROG1" >"$ARG2" ]; then
   touch "$DIR/$TITLE1" << echo "$ARG"
fi