Skip to content

Instantly share code, notes, and snippets.

@bulv1ne
Created June 16, 2014 08:44
Show Gist options
  • Save bulv1ne/46ec8b635a7bafab09be to your computer and use it in GitHub Desktop.
Save bulv1ne/46ec8b635a7bafab09be to your computer and use it in GitHub Desktop.
# ls should return only 1 file
{ ls -l *DVD*; sleep 1; ls -l *DVD*; } | awk '{ print $5 }' | awk 'NR==2 { now = $1 }; NR==1 { then=$1 }; END { print (now-then)/1024 "kB/s" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment