awk, trimer des colonnes
2013-05-03
$ printf "two columns\t: with values to trim\n" | awk -F ':' '{gsub(/^[[:space:]]+|[[:space:]]+$/,"",$1); gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2); print $1":"$2}'
two columns:with values to trim
2013-05-03
$ printf "two columns\t: with values to trim\n" | awk -F ':' '{gsub(/^[[:space:]]+|[[:space:]]+$/,"",$1); gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2); print $1":"$2}'
two columns:with values to trim