Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
#
Return to Using Unicode in Linux
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
File conversion script destroys file permissions
Posted by: Anonymous Coward on November 04, 2004 07:25 AMThe given script:
iconv -f old-encoding -t UTF-8 filename > temp.tmp && mv temp.tmp filename
Should be written:
iconv -f old-encoding -t UTF-8 filename > temp.$$ && cat temp.$$ > filename && rm temp.$$
These changes also allow concurrent jobs to run in parallel.
Karl O. Pinc kop@meme.com
#