The thing is...If you can execute the line in a bash terminal then you can include it in a bash shell script
bash.sh
#! /bin/sh
...your steps go here
1. mount /dev/sda1 /mnt/usbdisk
2. rsync -av /mnt/usbdisk/content*.mpg /mpgfiles --progress
3. Wait for the rsync to finish - perhaps show a progress bar
4. When finished chown admin.joe all /mpgfiles/content*.mpg
5. Then chmod 755 all /mpgfiles/content*.mpg
6. rsync -av /mpgfiles/content*.mpg to a remote storage server --progress
7. Display a counter while rsync is in progress
8. after rsync finishes,umount /mnt/usbdisk
....
exit 0
then make the bash shell script executable with chmod +x bash.sh
For example your shell script with the first line could be
bash.sh
#! /bin/sh
mount /dev/sda1 /mnt/usbdisk
exit 0 gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387