Skip to content

Instantly share code, notes, and snippets.

@AlecZadikian9001
Created April 25, 2018 18:49
Show Gist options
  • Select an option

  • Save AlecZadikian9001/909789bcca957615f1e933c5c8122a48 to your computer and use it in GitHub Desktop.

Select an option

Save AlecZadikian9001/909789bcca957615f1e933c5c8122a48 to your computer and use it in GitHub Desktop.

Revisions

  1. AlecZadikian9001 renamed this gist Apr 25, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. AlecZadikian9001 created this gist Apr 25, 2018.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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
    }