node2:/root#cat bb aa | bb |cc node2:/root# node2:/root# awk 'BEGIN{FS=OFS="|"}{gsub(/ /,"",$2);print $0}' bb>cc node2:/root#cat cc aa |bb|cc