|
@ -8,17 +8,18 @@ |
|
|
for song in songs/*/*.sg; do |
|
|
for song in songs/*/*.sg; do |
|
|
if grep -q "selectlanguage{english}" $song |
|
|
if grep -q "selectlanguage{english}" $song |
|
|
then |
|
|
then |
|
|
sed -i "s/ ?/?/g" $song; |
|
|
sed -i \ |
|
|
sed -i "s/ !/!/g" $song; |
|
|
-e 's/(\s)*?/?/g' \ |
|
|
sed -i "s/ :/:/g" $song; |
|
|
-e 's/(\s)*!/!/g' \ |
|
|
|
|
|
-e 's/(\s)*:/:/g' \ |
|
|
|
|
|
$song; |
|
|
fi; |
|
|
fi; |
|
|
if grep -q "selectlanguage{french}" $song |
|
|
if grep -q "selectlanguage{french}" $song |
|
|
then |
|
|
then |
|
|
sed -i "s/?/ ?/g" $song; |
|
|
sed -i \ |
|
|
sed -i "s/ ?/ ?/g" $song; |
|
|
-e 's/\([^ ]\)?/\1 ?/g' \ |
|
|
sed -i "s/!/ !/g" $song; |
|
|
-e 's/\([^ ]\)!/\1 !/g' \ |
|
|
sed -i "s/ !/ !/g" $song; |
|
|
-e '/\\gtab.*/ ! s/\([^ ]\):/\1 :/g' \ |
|
|
sed -i "s/:/ :/g" $song; |
|
|
$song; |
|
|
sed -i "s/ :/ :/g" $song; |
|
|
|
|
|
fi; |
|
|
fi; |
|
|
done; |
|
|
done; |
|
|