Advertisement
Gfy

RecreateSRS.sh

Gfy
Aug 27th, 2011
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement