(solved) shellscript for utf8 conversion of old pnlang files  Bottom

  • Hi,

    I tried to use a little shellscript to be executed in the pnlang directory to convert old language files to use them inside a 1.2.0 - installation (utf8):

    Code

    find -iname '*.php' -exec /usr/bin/iconv -f ISO-8859-1 -t UTF-8 {} > {}_conv && rm {} && mv {}_conv {} \;

    but the command breaks with "find: missing argument to `-exec'"

    Is there anybody out there who can say what's wrong with the find command? Maybe there are tomatos on my eyes...

    Thanks, Flo

    --
    ifs-net.de -- zksoft.de
  • Thanks to Axel.

    Code

    find . -name "*.php" -path "*deu*" | xargs recode ISO-8859-15..UTF8 --touch


    does the samt thing and works...

    Flo

    --
    ifs-net.de -- zksoft.de
  • Are those dots in the command line (recode ISO-8859-15..UTF8 ) ?

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • yes, these are dots..

    --
    ifs-net.de -- zksoft.de

This list is based on users active over the last 60 minutes.