Created
April 25, 2018 18:49
-
-
Save AlecZadikian9001/909789bcca957615f1e933c5c8122a48 to your computer and use it in GitHub Desktop.
File copy shell script that shows progress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested in Ubuntu 14, requires pv | |
copy () | |
{ | |
echo Copying $1 to $2 | |
cat $1 | pv -a -r -b -p -e -s $(stat --printf="%s" $1) > $2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment