Skip to content

Instantly share code, notes, and snippets.

@mjf
Created March 16, 2012 10:22
Show Gist options
  • Save mjf/2049456 to your computer and use it in GitHub Desktop.
Save mjf/2049456 to your computer and use it in GitHub Desktop.
Example of recurrent shell scrip call over it's arguments
#! /bin/sh
# PUT SOME CODE WORKING ON $1 HERE
if [ $# -gt 1 ]
then
shift
exec $0 $*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment