Skip to content

Instantly share code, notes, and snippets.

@miceno
Created January 8, 2019 17:54
Show Gist options
  • Save miceno/e3d42eaa7f3fa66642cf62b3e461583f to your computer and use it in GitHub Desktop.
Save miceno/e3d42eaa7f3fa66642cf62b3e461583f to your computer and use it in GitHub Desktop.
Show how a file size changes overtime
while true;
do
ls -s $FILE;
sleep 1;
done | awk 'BEGIN{ previous=0;}{ current=$1; if(previous==0) previous=current; d=current-previous; previous=current; print d;}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment