我的Grep命令根本不起作用`grep -orE“ <table [\ n \ r \ s] + showfilterbar = \ {false \}”。=“” app` =“”

时间:2019-01-04 15:52:06

标签: bash grep

1 个答案:

答案 0 :(得分:2)

grep不支持\s的空白。请改用[:space:],或单独列出所有空白字符。

grep -E '<Table[[:space:]]+showFilterBar={false}'
grep -E '<Table[ \t\r]+showFilterBar={false}'

由于\n一次只搜索一行,所以我省略了grep