Skip to content

Instantly share code, notes, and snippets.

@ryansb
Created September 3, 2012 20:10

Revisions

  1. ryansb renamed this gist Sep 10, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ryansb created this gist Sep 3, 2012.
    9 changes: 9 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    find /run/media/ryansb -maxdepth 1 -type d | sed 1d |while read line
    do
    echo "$line"
    rm -r $line/*
    cp -r /home/ryansb/IGIC/*.pdf $line
    chmod 777 $line/*
    umount $line
    done
    echo "Done!"