(echo "abc";echo "def")|awk '/abc/{sub("b","-");print} !/abc/{print}'