Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Created June 2, 2014 04:02
Show Gist options
  • Save jj1bdx/ac043f442cc6c30f42de to your computer and use it in GitHub Desktop.
Save jj1bdx/ac043f442cc6c30f42de to your computer and use it in GitHub Desktop.
A shell one-liner for an infinite loop (sh/zsh/bash compatible)
while true; do date; sleep 5; done
@earayu
Copy link

earayu commented Jul 9, 2023

Nice

@asgs
Copy link

asgs commented Jan 8, 2024

And I thought indenting is a must like it's in python. Thank you so much!

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