grep -o 只输入匹配内容,以换行分隔

因学到一个grep 参数

grep -o 'abcd' 

Man

       -o, --only-matching
              Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
blog comments powered by Disqus