命令 'tee' 类似 'cat',唯一不同是它将stdin输入传到stdout,并放进文件中。
语法:
cat or tac <fileName> | tee <newFile> | cat or tac |.....
例子:
tac weeks.txt | tee new.txt | cat
看上面的截图,使用命令 'tee' 来创建文件 'new.txt' 。
我要举报该,理由是:
推荐文章: