Last active
November 22, 2023 21:24
-
-
Save hidsh/e2ef8b4f0b2111929ab0987202fd3cdb to your computer and use it in GitHub Desktop.
shell script example: wait sec
This file contains 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
#!/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