I have a pipe delimited file. I am checking for junk characters ( non printable characters and unicode values).
I am using the following code
grep '[^ -~]' file.txt
But i want to ignore the name fields. For example field2 is firstname so i want to ignore if the junk characters occur there and not consider it as a bad record.
Also, I want to process the file at once and not line by line in a loop. Thats why i was using hte above command.
---------- Post updated at 03:02 AM ---------- Previous update was at 02:13 AM ----------