|
How to extract Numbers: msg#00066editors.sed.user
Hi all, I've a string like this AAAxx.yy where AAA are letters and xx and yy are numbers. I want to extract xx.yy from the string. I'm doing some thing like this. echo abc12.34 | sed -e 's|^\D*\(\d.*\)|\1|g' but the result i'm getting is abc12.34 only. Where am i doing wrong ? Thx in advance, Surya ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/dkFolB/TM --------------------------------------------------------------------~-> -- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/sed-users/ <*> To unsubscribe from this group, send an email to: sed-users-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | check user directory owner by others users: 00066, shamrul ismawi |
|---|---|
| Next by Date: | Re: How to extract Numbers: 00066, Steve Ahrendt |
| Previous by Thread: | Bug on GNUWin32 sed 4.1.4i: 00066, hq00e |
| Next by Thread: | Re: How to extract Numbers: 00066, Steve Ahrendt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |