Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试对包含 2 行标题信息(不应排序)的 awk 脚本的输出进行排序。为此,我在tcsh shell中使用tee命令,如下所示
awk -f scr.awk tmp.txt | tee >(head -n 2 > tm) >(tail -n +3 | sort -k1,1 >> tm)
上面的代码不起作用;它给出了错误Missing name for redirect。我怎样才能解决这个问题?