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