I'm having some problem with sed on os x.5. I would like to remove leading white space from a file. I try those two sed command: sed -e 's/^[:space:]+//' file1.txt sed -e 's/^[ \t]+//' file1.txt With and without the -e and -E. Nothing seem to do it. What am I missing here?!? Is the os x sed standard?