![]() |
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 multiple lines with single line | siba.s.nayak | Shell Programming and Scripting | 3 | 05-28-2008 03:43 AM |
| replacing new lines in all files of a directory containing old lines | rooster005 | Shell Programming and Scripting | 1 | 03-25-2008 03:38 PM |
| retrieved multiple lines on multiple places in a file | dala | Shell Programming and Scripting | 8 | 03-14-2008 03:28 PM |
| replacing specific lines in a file | hcclnoodles | Shell Programming and Scripting | 6 | 09-30-2006 12:35 PM |
| replacing first line or lines in a file | Terrible | UNIX for Advanced & Expert Users | 3 | 06-28-2006 09:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
i have a file :
sample1.txt OBJECT="POINT" ACTION="REDEFINE" POINT_NAME="ABCD001G " GHYT_POPRIORITY_1="1" GHYT_POPRIORITY_2="1" GHYT_POPRIORITY_3="1" GHYT_POPRIORITY_4="1" GHYT_POPRIORITY_USER="1" HIGH_ALARM_PRIORITY_1="1" HIGH_ALARM_PRIORITY_2="1" HIGH_ALARM_PRIORITY_3="1" HIGH_ALARM_PRIORITY_4="1" HIGH_ALARM_PRIORITY_USER="1" LOW_SENSOR_LIMIT="0.0038" HIGH_SENSOR_LIMIT="0.022" OPERATING_RANGE_LOW="0" OPERATING_RANGE_HIGH="600" FIELD_TRANSMITTER_TYPE="MA" THERMOCOUPLE_UNITS="F" GHYT_POLIMIT_1_TYPE="V" GHYT_POLIMIT_1_VALUE="-1" HIGH_ALARM_LIMIT_1_TYPE="V" HIGH_ALARM_LIMIT_1_VALUE="250" OBJECT="POINT" ACTION="REDEFINE" POINT_NAME="NGBLT04C" GHYT_POPRIORITY_1="1" GHYT_POPRIORITY_2="1" GHYT_POPRIORITY_3="1" GHYT_POPRIORITY_4="1" GHYT_POPRIORITY_USER="1" HIGH_ALARM_PRIORITY_1="1" HIGH_ALARM_PRIORITY_2="1" HIGH_ALARM_PRIORITY_3="1" HIGH_ALARM_PRIORITY_4="1" HIGH_ALARM_PRIORITY_USER="1" LOW_SENSOR_LIMIT="0.0038" HIGH_SENSOR_LIMIT="0.0205" FIELD_TRANSMITTER_TYPE="MA" THERMOCOUPLE_UNITS="F" LOW_ALARM_LIMIT_1_TYPE="V" LOW_ALARM_LIMIT_1_VALUE="-1" HIGH_ALARM_LIMIT_1_TYPE="V" HIGH_ALARM_LIMIT_1_VALUE="250" wHAT I NEED TO DO I HAVE TO REPLACE SOME FIELDS FROM A FILE sample2.txt NGBPT001A 0 300 NGBLT04C 0 100 NGBLT04B 0 100 I HAVE TO REPLACE FOLLOWNG TWO FIELDS in sample1.txt WITH VALUE IN MY SECOND FILE sample2.txt RESPECTIVELY IN COLUMN 1 & 2 for followng fields LOW_ALARM_LIMIT_1_VALUE="-1" HIGH_ALARM_LIMIT_1_VALUE="250" New to sed ... hard for me to do wth multiple fields wIll aprecIate help .... Tx Last edited by ajnabi; 04-09-2002 at 01:07 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|