Skip to content

Instantly share code, notes, and snippets.

@joaorafaelm
Created October 2, 2014 03:39
Show Gist options
  • Save joaorafaelm/9f91f3c88cd9b1d69dcb to your computer and use it in GitHub Desktop.
Save joaorafaelm/9f91f3c88cd9b1d69dcb to your computer and use it in GitHub Desktop.
upper to lower
#!/bin/bash
for arquivos in $(ls $1) ;
do
novoarquivo=`echo $arquivos | tr \[:upper:\] \[:lower:\]`
mv "$1/$arquivos" "$1/$novoarquivo"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment