![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| If Then Else Logic | jadionne | UNIX for Dummies Questions & Answers | 7 | 11-23-2007 04:27 AM |
| cannot get the logic | dineshr85 | Shell Programming and Scripting | 3 | 10-11-2007 07:34 AM |
| Query on a shell script logic | tipsy | Shell Programming and Scripting | 1 | 06-29-2006 05:38 PM |
| Problem with if logic | rjsha1 | Shell Programming and Scripting | 1 | 02-08-2006 07:58 AM |
| what the logic | ramneek | IP Networking | 2 | 09-05-2005 07:42 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Shell or PERL Logic
Hello All,
Currently i am working on a logic in PERL scripting ... But i am sort of stuck up, can any one please help. Here goes. 1. Search for a pattern in a file 2. If the pattern matched lets say 10 lines 2.1 Reterive the first line and check for another pattern 2.1.1 if the second pattern found 2.1.1.1 extract the characters between the patterns 2.1.1.2 if its numbers, replace it with another set of numbers provided as input. 2.2 Reterive the Second line and check for another pattern 2.2.1 if the second pattern found 2.2.1.1 extract the characters between the patterns 2.2.1.2 if its numbers, replace it with another set of numbers provided as input. ...................... 2.10 Reterive the Second line and check for another pattern 2.10.1 if the second pattern found 2.10.1.1 extract the characters between the patterns 2.2.10.2 if its numbers, replace it with another set of numbers provided as input. The Problem is i am not that much familiar with the PERL commands,i am trying to work on any help would be grateful. Thanks Rahul |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|