Skip to content

Instantly share code, notes, and snippets.

@dalthonmh
Created April 30, 2023 23:33
Show Gist options
  • Save dalthonmh/229fea1d4cf49cb814a7091d3d2fa335 to your computer and use it in GitHub Desktop.
Save dalthonmh/229fea1d4cf49cb814a7091d3d2fa335 to your computer and use it in GitHub Desktop.
Ejemplo de documentar script, comando sleep unix
#!/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