USS tool sed not recognize regular expression



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

USS tool sed not recognize regular expression

Postby richiewu » Thu Sep 05, 2013 12:08 pm

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
richiewu
 
Posts: 9
Joined: Mon Jul 12, 2010 8:10 am
Has thanked: 2 times
Been thanked: 0 time

Re: USS tool sed not recognize regular expression

 

Re: USS tool sed not recognize regular expression

Postby BillyBoyo » Thu Sep 05, 2013 12:58 pm

How about googling for something like "reuglar expression regex to remove leading space"?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: USS tool sed not recognize regular expression

Postby richiewu » Fri Sep 06, 2013 12:30 pm

^ * means leading space in POSIX regular expression
^ is means start of line * means occurs any time
richiewu
 
Posts: 9
Joined: Mon Jul 12, 2010 8:10 am
Has thanked: 2 times
Been thanked: 0 time


Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post