This is a content of file test
>-----------------max------------------
>-----------------abc
def
<------------------mnc------------------
jkl
Here I want to grep the line that contains <
>
symbol
I tried this method
[max@localhost ~]$ grep \> \< test
grep: <: No such file or directory
test:>-----------------max------------------
test:>-----------------abc
but it's not working what should i do now?
grep PATTERN FILE FILE FILE FILE ...
?>
<
i know these are redirect symbol, but how to remove the special meaning of this symbol, i thought that putting slash in front of this symbol remove the special meaning, but i am wrong in this case