Good:
Bad:
The second one will only work if
1 |
find . -name "*.java" -exec iconv -f windows-1252 -t utf-8 {} -o {}.utf8 \; |
1 |
find . -name "*.java" -exec iconv -f windows-1252 -t utf-8 {} -o converted/{} \; |
find
will not descend into sub directories, since the directory tree inside of converted
will not be created on demand, as it would be the case e.g. for mkdir -p
. The result will be a ‘file or directory not found’ error.