1.多个文件中的内容需要批量替换的 sed -i "s/oldstring/newstring/g" `grep oldstring -rl ./` 2.cat 显示文件内容 cat -n [文件] 对输出的所有行编号,由1开始对所有输出的行数编号