Page 1 of 1

USS tool sed not recognize regular expression

PostPosted: Thu Sep 05, 2013 12:08 pm
by richiewu
I tried use sed in USS:

sed -Ee 's/^ *//g' infile

This not work, the leading space still in the output, dose any one used this?

Thank you in advance.
Ricky

Re: USS tool sed not recognize regular expression

PostPosted: Thu Sep 05, 2013 12:58 pm
by BillyBoyo
How about googling for something like "reuglar expression regex to remove leading space"?

Re: USS tool sed not recognize regular expression

PostPosted: Fri Sep 06, 2013 12:30 pm
by richiewu
^ * means leading space in POSIX regular expression
^ is means start of line * means occurs any time