Advertisement
Guest User

Untitled

a guest
Nov 28th, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. bash-4.1$ date +'hello world'
  2. hello world
  3.  
  4. bash-4.1$ runWithDelay () { sleep $1; shift; ${@}; }
  5.  
  6. bash-4.1$ runWithDelay 1 date +'hello world'
  7. date: extra operand `world'
  8. Try `date --help' for more information.
  9.  
  10. bash-4.1$ runWithDelay () { sleep $1; shift; "${@}"; }
  11.  
  12. bash-4.1$ runWithDelay 1 date +'hello world'
  13. hello world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement