i am trying to write a script to match a '\' at the END of the line.
For eg. i have a file Temp1 which contains :-
a = b + c \ +d; printf("\n");
To match the '\' in the 1st line and NOT the 3rd line (line with the printf)
When i try
grep '\\' Temp1
i am shown the 1st line and the 3rd line. However, i don't want the 3rd line.
Similarly, when i try
grep '\\$' Temp1
it does not work.
Plz help !