Can someone explain me what this sed command is trying to achieve?
sed 's/^[[:space:]]*//;s/[[:space:]]*$//
I understand that it is searching for whitespace characters from the beginning of the line, but I am not able to understand the part starting from //;s/[[:space:]]*$//
;is to separate two commands; just like in a shell script. It could be writtensed -e 's/^[[:space:]]//' -e 's/[[:space:]]$//'. – Arcege Feb 20 '12 at 11:46