User Tools

Site Tools


quick_grep_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
quick_grep_tricks [2007/02/01 10:43]
adam created
quick_grep_tricks [2016/11/25 22:38] (current)
Line 5: Line 5:
   ls -lR | grep "x\|y"   ls -lR | grep "x\|y"
  
 +Removing blank lines from output:
  
 +  grep -v "^$" filename
 +
 +^ 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.
quick_grep_tricks.1170326610.txt.gz ยท Last modified: 2016/11/25 22:38 (external edit)