Skip to content

Instantly share code, notes, and snippets.

@ibLeDy
Last active March 7, 2026 23:42
Show Gist options
  • Select an option

  • Save ibLeDy/85acaa785a87eae9cfaedc7f7634b7fc to your computer and use it in GitHub Desktop.

Select an option

Save ibLeDy/85acaa785a87eae9cfaedc7f7634b7fc to your computer and use it in GitHub Desktop.
i=${1:-10} ; while [ $i -gt 0 ]; do echo $i seconds remaining; i=`expr $i - 1`; sleep 1; done
@ibLeDy
Copy link
Copy Markdown
Author

ibLeDy commented Feb 28, 2020

@ibLeDy
Copy link
Copy Markdown
Author

ibLeDy commented Jun 11, 2020

Edit: Use argument or default value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment