将此视为文件:M ../force-app/main/ui/classes/test.cls我正在逐行删除所有的额外字符如下:
sed /^D/d diff.txt | sed 's/^..//' | sed /^force-app/p | sed /^force-app\\/package\.xml
我有一个源文件source.txt,其中包含以下内容:data2::remove txt before this line::data5data4任何命令都可以使用,只要它可以在bash中工作,并且可以另存为脚本文件并以sh remove.sh运行cat source.txt |awk -F'::remove txt before this line