cat >> friends << "EOF"> a> b> c> EOF运行第一行(“cat >> friends << "EOF"”)以后,意思就是把我们接下来的输入内容保存到friends文件里面,当我们输入“EOF”的时候结束。“<<”的意思就是向前面的命令传送一个数据。