Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created April 23, 2012 02:55
Show Gist options
  • Save fsouza/2468521 to your computer and use it in GitHub Desktop.
Save fsouza/2468521 to your computer and use it in GitHub Desktop.
#!/bin/csh
foreach a (`ls | grep -E 'aula_[0-9]$'`)
set new_a=`echo $a | sed 's/aula_\([0-9]\)/aula_0\1/'`
mv $a $new_a
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment