Created
May 30, 2019 20:25
-
-
Save danielgarciabsb/ec4e7d1a1bae31172a6a18da8839615e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.java; do printf '<class>br.com.sicoob.sisbr.pgpc.persistencia.riscooperacional.entidades.%s</class>\n' "${f%.java}"; done | |
/PGPC/(?!swf)\w+ | |
\s+<option name="additionalConfigFilePath" .* | |
integracao(.*)Delegate | |
integracao$1ServicoEJB | |
sed -i '/additionalConfigFilePath/d' .\pgpc-flex.iml | |
(package .*) | |
$1 \nimport br.com.bancoob.persistencia.types.DateTimeDB; | |
#!/bin/bash | |
pushd ../pgpc_utf8/ | |
FILE=java.txt | |
touch ../conversor/convertidos.txt | |
QT_CONV=0 | |
QT_ISO=0 | |
find -name *.[Jj][Aa][Vv][Aa] > $FILE | |
while read LINE; | |
do | |
echo $(file -i $LINE) | |
if [[ $(file -i $LINE) == *"charset=utf-8"* ]] | |
then echo "Convertendo arquivo de UTF-8 PARA ISO-8859-1..." | |
mkdir -p convertido/$(dirname $LINE) | |
iconv -f UTF-8 -t ISO-8859-1//TRANSLIT $LINE -o convertido/$(dirname $LINE)/$(basename $LINE) | |
echo $LINE >> ../conversor/convertidos.txt | |
QT_CONV=$((QT_CONV+1)) | |
else | |
QT_ISO=$((QT_ISO+1)) | |
echo "NAO" | |
fi | |
#do file -i "$LINE" | grep utf-8 >> java_utf8.txt | |
done < $FILE | |
echo "QUANTIDADE CONVERTIDOS "$QT_CONV | |
echo "QUANTIDADE ISO "$QT_ISO | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment