![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find/replace to new file: ksh -> perl | McLan | Shell Programming and Scripting | 1 | 05-16-2008 12:14 AM |
| Problem with pattren Matching | pbsrinivas | Shell Programming and Scripting | 7 | 11-27-2006 12:17 AM |
| Search for a Pattren in the files. | sbasetty | Shell Programming and Scripting | 2 | 10-05-2006 09:43 AM |
| find and replace a pattern in a file | krishnamaraju | Shell Programming and Scripting | 1 | 08-29-2006 07:02 AM |
| Find replace within a file? | yankee428 | UNIX for Dummies Questions & Answers | 2 | 06-15-2005 09:32 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
find and replace pattren in file
Hi,
I have the input file having data as follow: file1.txt 001 aaa_1:abcd 002 bbb_2:abcd I want output as, 001xabcd 002xabcd Here iam trying to replace "{1 space}{alphanumeric string with underscore}{:}" with characrter "x". I tried to achieve this using sed;but Iam not getting this correctly. Thanks in advance. |
| Forum Sponsor | ||
|
|