【shell脚本实战案例】awk替换文本字段,并打印替换后的整行文本

问题背景:

文本Label:1 替换为 Replace:1

解决方法:

awk -F" " '{$1="Replace:";print=$0}' file

猜你喜欢

转载自blog.csdn.net/qq_35902025/article/details/135030456