free your mind be Happy then do a good job !
>>有關 Linux 使用grep篩選多個條件及grep常用過濾命令 demo
$cat log.txt | grep 條件;
$cat log.txt | grep 條件一 | grep 條件二;
$cat log.txt | grep 條件一 | grep 條件二 | grep 條件三;<= and 條件
$cat log.txt | grep -E "條件一 | 條件二 | 條件三" <= or 條件
張貼留言
沒有留言:
張貼留言