![]() |
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 |
| Replacing more than 1 pattern in a line | Manan | Shell Programming and Scripting | 6 | 12-28-2006 01:58 AM |
| Replacing a paragraph between pattern , with the content 4m another file | go4desperado | Shell Programming and Scripting | 4 | 12-07-2006 09:44 AM |
| finding duplicate files by size and finding pattern matching and its count | jerome Sukumar | Shell Programming and Scripting | 2 | 12-01-2006 04:20 AM |
| finding & replacing blank rows/spaces in a file | Gerry405 | SUN Solaris | 2 | 07-21-2005 04:49 AM |
| Replacing pattern in variable | videsh77 | Shell Programming and Scripting | 1 | 05-26-2005 02:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
help with finding & replacing pattern in a file
Hi everyone.
Could u be so kind and help me with on "simple" shell script? 1. i need to search a file line by line for a pattern. example of a lines in that file 2947 domain = feD,id = 00 0A 02 48 17 1E 1D 39 DE 00 0E 00,Name Values:snNo = f10 Add AttFlag = 0 2. i need to find pattern after string feD,id = .... , => 00 0A 02 48 17 1E 1D 39 DE 00 0E 00 3. if found, i need to pass that value to one function, which returns another value, that i'd like to replace with the original one. => function returns 36636361 and the line will looks like : 2947 domain = feD,id = 36636361,Name Thanks for any help |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|