我尝试使用,ps r > log | wc log但这会返回Ambiguous output redirect.. 有人可以解释原因并提供另一种解决方案吗?
ps r > log | wc log
Ambiguous output redirect.
shell pipe io-redirection
所以我被困在这里:
grep -E '^....c...c...$'显示所有带有我需要的 expr 的单词。现在从这个词我只需要那些没有x.
grep -E '^....c...c...$'
x
grep regular-expression
grep ×1
io-redirection ×1
pipe ×1
regular-expression ×1
shell ×1