Gfy

RecreateSRS.sh

Gfy
Aug 27th, 2011
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Tries to recreate sample file when a SRS file is found based on a RAR in the same directory.
  4. # Works in Cygwin
  5. # 2011-08-27
  6.  
  7. for srs in $(/bin/find $1 -iname "*.srs")
  8. do
  9.    echo $srs;
  10.    videorar="$(/bin/dirname $srs)/*.rar";
  11.    echo $videorar;
  12.    srs $srs $videorar;
  13. done
RAW Paste Data