Advertisement
jedypod

Loop Through Directories

Sep 6th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. IFS=$'\n'
  2. src="/Volumes/BloombergSF_Drive2/9.5.12 JOB # BMG12005 BLOOMBERG FIRST /9.5.12_JOB#BMG12005_BLOOMBERG_A001/A001_0905UX.RDM/"
  3. for dir in `ls "$src/"`
  4. do
  5.   if [ -d "$src/$dir" ]; then
  6.     echo "$dir"
  7.     ls $dir/*.RMD
  8.     cp $dir/*.RMD "/Volumes/Wilder/Motion/Bloomberg/BMG12005_Inspiration_Rewind/Footage/Camera/RAW/9.5.12_JOB#BMG12005_BLOOMBERG_A001/A001_0905UX.RDM/$dir"
  9.   fi
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement