0

我正在尝试对包含 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。我怎样才能解决这个问题?

4

0 回答 0