linux下写sh脚本的时候,如何把文本中ABC替换成空,如文件名是abc.txt

2024-11-27 23:25:18
推荐回答(2个)
回答1:

sed -i 's/ABC//g' abc.txt

回答2:

sed "s/ABC/[[:space:]]/g" abc.txt