I have a txt file with more than 10000 lines. There is a unique pattern which is scattered into the file. it starts with @9 and it has 15 characters. i need to grep them and display along with line numbers.
Eg: File - Test1
test message....
....
..
..
@9qwerty89
...test message @9qwerty56......
....end
"@" is an ordinary character in both posix regular expression flavors, basic and extended. According to the standard, in extended regular expressions, preceding an ordinary character with a backslash always yields an undefined result (in basic regular expressions, there are a few defined backslash-ordinary character sequences but none of them involved "@"). It's probably best to ditch "\@" in favor of an unescaped "@".