When I open the original file in a UNIX text editor I see:
Code:
Distributeur
Alliance Vivafilm
Origine
...
Don't edit text files for UNIX in notepad. If you'd been editing them in UNIX you'd have seen those characters; they're what Notepad inserts at the beginning of Unicode text files to warn itself that they're unicode(UTF8 in this case), and that's what's messing up your comparison.
Here's an improvement on dos2unix for that, stripping out those faulty characters and windows' carriage returns at the same time:
i did before posting...the test is OK... the problem is not there...
Quote:
Don't edit text files for UNIX in notepad. If you'd been editing them in UNIX you'd have seen those characters; they're what Notepad inserts at the beginning of Unicode text files to warn itself that they're unicode(UTF8 in this case), and that's what's messing up your comparison.
I extract those from a file i download from a website, when downloaded the file is ISO-8859-1 i use:
Code:
vim +"set bomb | set fileencoding=utf-8 | wq" $(find . -type f -name info.txt)
After inputted all required fields in registration page, the below message is shown and cannot go on.
A required field called Custom Date & Time Formats is missing or has an invalid value. (2 Replies)
Hi Team,
I have a file named as follows: aaa.tar.gz
Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Hi,
I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Hi
I have a problem in installing solaris 9 in a ULTRA Enterprise 2 machine.
The cdrom does not keep the cd in. When I put the installtion cd 1 and close the tray, I can see the led blinks three times and then the tray comes out. I borrowed a set of installtion cd s from one of my friends (they... (3 Replies)