![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Extract string? | namrata5 | High Level Programming | 2 | 10-24-2007 12:17 AM |
| Stripping a portion of string from behind!!! | kumarsaravana_s | UNIX for Dummies Questions & Answers | 5 | 03-18-2007 11:21 AM |
| How to extract a sub-string from a string? | JohnHealey | UNIX for Dummies Questions & Answers | 4 | 01-22-2007 01:29 AM |
| Extract String | sehgalniraj | UNIX for Dummies Questions & Answers | 1 | 09-25-2006 09:35 AM |
| Extract String | bestbuyernc | Shell Programming and Scripting | 5 | 11-14-2005 12:42 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
How to extract a portion of a string from the whole string
How to extract a portion of a string from a full string using unix.
For example: Say source string is = "req92374923.log" I want only the numeric portion of the string say "92374923" how to do that in Unix. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I suppose it depends on what you are really trying to do. One way would be:
Code:
echo req92374923.log | cut -c4-11
__________________
[url=http://chuckb.1le.net/]My website[/url] |
|
#3
|
|||
|
|||
|
Thanks 98_1LE
It worked fine.. Regards, ds_sastry |
|||
| Google The UNIX and Linux Forums |