Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Remove All leading Blank spaces

sed 's/^[ t]*//'

e.g.

[root@localhost /]# rpm -qa --last | tail -n 1 | cut -f2- -d' ' | sed 's/^[ t]*//'

Remove All leading and trailing Blank Spaces

cat input.txt | sed 's/^[ t]*//;s/[ t]*$//' > output.txt