Quote:
Originally Posted by beginner82
Hi,
I have to write s script to check an input file for invalid characters. In this script I have to find the exact line of the invalid character. If the input file contain 2 invalid character sat line 10 and 17, the script will show the value 10 and 17. Any help is appreciated.
|
in that case try
Code:
awk '$0 ~ /anycharacter/{print "line no : "NR}' filename