I\'m trying to remove leading and trailing space in 2nd column of the below input.txt:
input.txt
Name, Order Trim, working
Name, Order
Trim, working
The following seems to work:
awk -F',[[:blank:]]*' '{$2=$2}1' OFS="," input.txt