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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
search and replace a.suryakumar Shell Programming and Scripting 1 04-28-2008 11:30 AM
How to search for two fields jisha Shell Programming and Scripting 3 04-23-2008 05:16 AM
Perl: Search for string on line then search and replace text Crypto Shell Programming and Scripting 4 01-04-2008 10:24 AM
Replace 3 fields with null in the file vukkusila Shell Programming and Scripting 1 09-12-2007 01:10 AM
search and replace tungaw2004 Shell Programming and Scripting 1 03-23-2007 11:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-22-2007
tungaw2004 tungaw2004 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 31
search and replace different fields

Hi

i want to search and replace different field on each files.

file 1

FIELD2=xxxxxxxxx
FIELD4=xxxxxxxx
FIELD3=xxxxxxx
FIELD1=20000


file 2

FIELD1=
FIELD2=

file 3

FIELD2=xxxxxxxxx
FIELD4=xxxxxxxx
FIELD3=xxxxxxx
FIELD1=20000

i created another file where i store all the necessary variables and it's values.
i want to populate these values into 6 files. anyone who can help me?

thanks,
  #2 (permalink)  
Old 03-23-2007
Raghuram.P Raghuram.P is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 44
Hi,
I am not able to get what you need.Can you explain further....
Thanks
Raghuram
  #3 (permalink)  
Old 03-23-2007
tungaw2004 tungaw2004 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 31
Hi,

The file mentioned above are the files where i can append the values. the values came from another file where i handles all the new values. all i want to know is how can i append the values in these files because the fields are different. all i know is the position of the character.
  #4 (permalink)  
Old 03-29-2007
asmita asmita is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 7
still m not very much clear abt the problem..
can u explain it with another example. m not getting this example.
Closed Thread

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 03:16 AM.


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