2014年2月7日 星期五

[MAC] MAC grep command

在linux下面使用grep,如果要使用or 做查詢條件,只要簡單的使用

grep ‘foo|bar’ XXX 即可,

 

但在MAC下面如果要使用grep 找尋兩種條件的話,要使用

grep -e ‘foo’  -e ‘bar’ xxxx

 

或者直接使用egrep 代替

egrep ‘foo|bar’ 

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote