awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}'
awk '{$1=$1;print}' # also removes extra space between fields
# This awk idiom can be used to turn command output into spreadsheet-friendly output by separating it with tabs.
# So for example, the output of the ls command:
ls -l | awk -v OFS="\t" '$1=$1'
# insert 5 blank spaces at beginning of each line (make page offset)