The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-08-2002
ajnabi ajnabi is offline
Registered User
  
 

Join Date: Nov 2001
Location: Atlanta, GA
Posts: 34
Angry help requred

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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0