Created
August 25, 2017 22:09
-
-
Save ali5h/c56c035891b821b3dff24fb78262067c to your computer and use it in GitHub Desktop.
bash tricks
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
# counting the lines in pipe | |
cmd | { I=0; while read; do printf "$((++I))\r"; done; echo ""; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment