I have an input file with millions of records (lines). But my awk script couldn't read the input file, giving me this error:
awk: record `-rw------- 1 sagch...' too long
record number 1746
After I checked, I found a record with blanks in between. I used cat -v to check and found that those blanks are made up of thousands of non-printable ^@ control character.
-rw------- 1 abcde staff 32768 May 14 09:45 /f00a/home/
***thousands of non printable characters here***
09:53 /f00a/home/abcde/.lgctermlogin
What can I do to exclude this record from being read? Or is there a way to detect the error and do something? I can't use VI to edit it because the file is too big (> 100 MB).
Please help.
ruxshin
awk: record `-rw------- 1 sagch...' too long
record number 1746
After I checked, I found a record with blanks in between. I used cat -v to check and found that those blanks are made up of thousands of non-printable ^@ control character.
-rw------- 1 abcde staff 32768 May 14 09:45 /f00a/home/
***thousands of non printable characters here***
09:53 /f00a/home/abcde/.lgctermlogin
What can I do to exclude this record from being read? Or is there a way to detect the error and do something? I can't use VI to edit it because the file is too big (> 100 MB).
Please help.
ruxshin