# 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