I have this script that I found on the net which helps me copy files with specific names to specific folders.
I want to use this script to copy some large files from local disk to a NAS, and I would like to see a GUI progress bar while copying.
Can anyone help me with that?
Here's the script:
Thanks!Code:dir1=~/tmp/dir1 dir2=~/tmp/dir2 for f in *.avi *.mp4; do case $f in *[Tt][Ee][Ss][Tt]*) mv -n $f $dir1 ;; *[Ff][Ii][Ll][Ee]*) mv -n $f $dir2 ;; esac done