This shows you the differences between two versions of the page.
quick_grep_tricks [2009/06/04 11:47] adam |
quick_grep_tricks [2016/11/25 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Quick Grep Tricks ===== | ||
- | Grep for x or y, eg: | ||
- | |||
- | ls -lR | grep " | ||
- | |||
- | Removing blank lines from output: | ||
- | |||
- | grep -v " | ||
- | |||
- | "^ is the start of line expression and $ is the end of line expression, in this case we are asking for a line containing the line beginning and line ending with nothing in between." |