标签: bash grep
答案 0 :(得分:2)
grep不支持\s的空白。请改用[:space:],或单独列出所有空白字符。
grep
\s
[:space:]
grep -E '<Table[[:space:]]+showFilterBar={false}' grep -E '<Table[ \t\r]+showFilterBar={false}'
由于\n一次只搜索一行,所以我省略了grep。
\n