Skip to content

Instantly share code, notes, and snippets.

@movalex
Last active September 22, 2020 21:22
Show Gist options
  • Save movalex/cdcb1193d539669baea721e23492a9de to your computer and use it in GitHub Desktop.
Save movalex/cdcb1193d539669baea721e23492a9de to your computer and use it in GitHub Desktop.
Tar zipping with progressbar on MacOS
  1. install pv with Homebrew

    brew install pv

  2. create tar archive, enjoy this nice progressbar

    tar cf - ./FONTS -P | pv -s $(($(du -sk ./FONTS | awk '{print $1}') * 1024)) | > FONTS.tar

  3. the output will be like:

    4.69GB 0:04:50 [16.3MB/s] [==========================> ] 78% ETA 0:01:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment