# add
awk '$1~/wang/{$2=$2+300}1' file 1<>file
# replace
sed 's/\/proc\/[0-9]\{0,5\}/\/proc\/*****/g' test > test3
file 1<>file
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=218853&page=7#pid1636825
# add
awk '$1~/wang/{$2=$2+300}1' file 1<>file
# replace
sed 's/\/proc\/[0-9]\{0,5\}/\/proc\/*****/g' test > test3
file 1<>file
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=218853&page=7#pid1636825
本文标题:2018-10-30 file 1<>file
本文链接:https://www.haomeiwen.com/subject/vpgntqtx.html
网友评论