我正在寻找与cat相反的unix命令(但不是tac )。
我想要做
$ SOMECOMMAND /tmp/file I type some content for the file here ^D $ cat /tmp/file I type some content for the file here $
所以,我实际上input了'我input了一些内容…',然后将其写入到文件中。 而在你提出这个build议之前,是的,我非常了解编辑 – 只是寻找速记。
cat的对面是cat 。
$ cat > /tmp/file I type some content for the file here ^D $ cat /tmp/file I type some content for the file here $