Thursday, January 24, 2013

trim all leading and trailing whitespace with sed


# trim all leading and trailing whitespace
cat ./stuckchannels_Jan24-2013_unformatted.txt | sed 's/^[ \t]*//;s/[ \t]*$//'

No comments: