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
Regex to extract strings separated by anything, ignoring the separator in double quotation marks. | |
("(.+)")|[^,]+ : Comma | |
("(.+)")|[^;]+ : Semicolon | |
("(.+)")|[^\.]+ : Dot | |
("(.+)")|[^\|]+ : Pipe | |
("(.+)")|[^\\]+ : Backslash | |
Explanation: | |
("(.+)") : Any string starting and ending with double quotation marks |
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
#!/bin/bash | |
for file in `find . -regextype posix-egrep -regex ".*\.(html|jsp|jspx|java|properties|xml|sql|pck|fnc|trg)"`; do | |
iconv -f ISO-8859-1 -t UTF-8 $file > $file.utf-8; | |
mv $file.utf-8 $file; | |
done |