Control characters -weird problem

I am using Korn shell on Linux 2.6x platform , and I am suing the following code to capture the lines which contain CONTROL CHARACTERS in my file :

awk '/[[:cntrl:]]/ {print NR}' EROLLMENT_INPUT.txt

The problem is that this code shows the file has control characters when the file is in folder A , but if I move this file to my home folder (/
home/user1) , and execute the same command , it doesnt show any control character presence in the same file .

Is this possible ???? Its the same file , and the same code peice as well, how could the outcomes differ ?

Please help.

Regards
Kumarjit

No, I shouldn't think that was possible, if it's the same file, unless perhaps the filesystem type is different and depending how you copied the file.

Can you diff the files? Are they the same, really? Or od can highlight the differences.

BTW, again, "Linux 2.6x" is not an operating system. You're referring to the kernel version.

Hello,

Are you use same user when you check the file in folder A and in your home/user ?

Regards.