I have a log file (application.log) which might contain the following string of normal & special characters on multiple lines:
*^%Q&$*&^@$&*!^@$*&^&^*&^&
I want to search for the line number(s) which contains this special character string.
grep '*^%Q&$*&^@$&*!^@$*&^&^*&^&' application.log
The above command doesn't return any results.
What would be the correct syntax to get the line numbers?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…