Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Interesting commands for the Linux shell. Parent comment
# At top of script
SECONDS = 0
# script commands
...
# At bottom of script
duration=$SECONDS
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
There are no comments on this comment yet.
# At top of script
SECONDS = 0
# script commands
...
# At bottom of script
duration=$SECONDS
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."