![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Emergency UNIX and Linux Support !! Help Me!! Post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| searching for a string in a file | ROOZ | UNIX for Dummies Questions & Answers | 2 | 03-07-2008 01:54 PM |
| Searching for a string variable | mattrix | UNIX for Dummies Questions & Answers | 2 | 03-04-2008 04:04 PM |
| Extracting a string from one file and searching the same string in other files | mohancrr | Shell Programming and Scripting | 1 | 09-19-2007 03:17 AM |
| one more query for searching string....... | swamymns | Shell Programming and Scripting | 6 | 02-03-2006 08:57 AM |
| Searching a string for a character | turbulence | Shell Programming and Scripting | 7 | 01-12-2006 09:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
||||
|
TCL scripting - searching for a IP address in a string
Hi All,
Can anyone please help me with the regular expression/code snippet to search for an IP address in a string with Tcl scripting. Example string "OSPF_NBRUP OSPF neighbor 16.138.181.15 (realm ospf-v2 e1-0/0/0:37.0 area 0.0.0.0) state changed from Full to Down due to KillNbr" In the above string i want to find IP 16.138.181.15 |
| Bits Awarded / Charged to radoulov for this Post | |||
| Date | User | Comment | Amount |
| 10-07-2009 | frank_rizzo | N/A | 50,000 |
|
|||||
|
what does the below mean ... I am new in TCL and hope to benefit from this ...
Code:
{(?:\d+\.){3}\d+}
---------- Post updated at 07:26 AM ---------- Previous update was at 07:25 AM ---------- and is "puts" a command or just a word? |
|
|||||
|
It's a regular expression that matches a sequence of 3 atoms of one or more digit(s) followed by a literal dot[1] followed by one or more digit(s). Quote:
Quote:
[1] Quote:
|
|
|||||
|
Thanks man
BR One more thing ..can you please recommend to me some books related to TCL & TK ---------- Post updated at 07:01 AM ---------- Previous update was at 06:58 AM ---------- Quote:
Thanks in advance |
|
|||||
|
Quote:
I purchased Exploring Expect on amazon and there is a quick TCL tutorial at the beginning of the book. You could even consult it online on Google books. I should add that the TCL group on USENET (comp.lang.tcl) is also a great resource. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|