Skip to content

Instantly share code, notes, and snippets.

@choan
Created March 19, 2009 17:03
Show Gist options
  • Save choan/81935 to your computer and use it in GitHub Desktop.
Save choan/81935 to your computer and use it in GitHub Desktop.
#!/bin/bash
locales="es en it ja fr de pt"
until [[ "$1" = "" ]]
do
base=${1%.*}
ext=${1#*.}
for lang in $locales
do cp $1 "${base}_${lang}.${ext}"
done
shift
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment