File1:
hello world
How would one delete the leading/trailing blank spaces within this file using sed - using one command (n
easier way, using awk
awk '{$1=$1}1' file
or
awk '{gsub(/^ +| +$/,"")}1' file