Skip to content

Instantly share code, notes, and snippets.

@filipemeneses
Created October 5, 2016 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipemeneses/a510a973953f711872f347295220ba76 to your computer and use it in GitHub Desktop.
Save filipemeneses/a510a973953f711872f347295220ba76 to your computer and use it in GitHub Desktop.
#rename exercise-00.go to l00e00.go
i=0
for d in */ ; do
cd $d
c=$(printf %02d $i)
mv exercise-${c}.sh l00e${c}.sh
cd ../
((i = i + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment