sexta-feira, 5 de fevereiro de 2010

Copy things in order

New method: http://returnsvoid.blogspot.pt/2018/04/copy-files-in-order.html

first, reproduce the directory structure:

find -type d | sort | awk ' { print "mkdir \""$0"\"" } '

(copy paste or something). Then:

find | awk '{print "cp -v \""$0"\" \"/media/mp3/whatever/"$0"\"" }' | sort > a

Check a, remove a and . in the end

sh a

1 comentário: