Skip to content

Instantly share code, notes, and snippets.

@hidsh
Last active November 22, 2023 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidsh/e2ef8b4f0b2111929ab0987202fd3cdb to your computer and use it in GitHub Desktop.
Save hidsh/e2ef8b4f0b2111929ab0987202fd3cdb to your computer and use it in GitHub Desktop.
shell script example: wait sec
#!/usr/bin/sh
wait_sec=5
beg=`date +%s`
end=$(($beg + $wait_sec))
while [ `date +%s` -le $end ]; do
echo -n '.'
done
echo '\nend'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment