Skip to content

Instantly share code, notes, and snippets.

@rluisr
Created February 11, 2017 10:10
Show Gist options
  • Save rluisr/8c8b5ea0edcdae5ede9958cb20170450 to your computer and use it in GitHub Desktop.
Save rluisr/8c8b5ea0edcdae5ede9958cb20170450 to your computer and use it in GitHub Desktop.
for
#!/bin/bash
i=$1
shift
(sleep $i; kill $$) & exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment