sed全行替换

2015-03-24

sed指定行,全行替换

#!/bin/sh
version='11.2.0.4'
sed -i "4c ${version}" build.txt

sed '3s/aaa/fff/' file

分类:Linux | 标签: |

相关日志

评论被关闭!