To trim space inside an awk inline script, the following command does the job:
awk -F"|" '{gsub(/ *$/,"",$1);gsub(/^ */,"",$1); print $1}
This entry was posted
on Monday, August 20th, 2007 at 6:18 am and is filed under Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.