Created
April 30, 2023 23:33
-
-
Save dalthonmh/229fea1d4cf49cb814a7091d3d2fa335 to your computer and use it in GitHub Desktop.
Ejemplo de documentar script, comando sleep unix
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
#!/bin/bash | |
# Name: sleep-demo.sh | |
# Purpose: bash script examples that demos sleep command | |
# Author: Vivek Gite {https://www.cyberciti.biz} | |
# ----------------------------------------------------------- | |
SLEEP_TIME="10" | |
echo "Current time: $(date +%T)" | |
echo "Hi, I'm sleeping for ${SLEEP_TIME} seconds ..." | |
sleep ${SLEEP_TIME} | |
echo "All done and current time: $(date +%T)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment