Friday, 23 August 2013

How to grep for pipe |

How to grep for pipe |

How can I grep for line containing pipe character | or for character >:
files content:
|this is test
where is >
this is none
now what I need using grep command is
grep -iE "<some expression>" file_name
Output:
|this is test
where is >

No comments:

Post a Comment