# search and replace different fields

**URL:** <https://community.unix.com/t/search-and-replace-different-fields/169995>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [March 22, 2007, 8:33pm UTC](https://community.unix.com/t/search-and-replace-different-fields/169995 "2007-03-22T20:33:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tungaw2004](https://community.unix.com/letter_avatar/tungaw2004/32/5_5575768a8748004e209b776fc1b2916d.png) [@tungaw2004](https://community.unix.com/u/tungaw2004)\
**Post date:** [March 22, 2007, 8:33pm UTC](https://community.unix.com/t/search-and-replace-different-fields/169995/1 "2007-03-22T20:33:37Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![Raghuram.P](https://community.unix.com/letter_avatar/raghuram.p/32/5_5575768a8748004e209b776fc1b2916d.png) [@Raghuram.P](https://community.unix.com/u/Raghuram.P)\
**Post date:** [March 23, 2007, 3:20am UTC](https://community.unix.com/t/search-and-replace-different-fields/169995/2 "2007-03-23T03:20:45Z")

</div>

Hi,  
I am not able to get what you need.Can you explain further....  
Thanks  
Raghuram

---

<div class="post-metadata">

**Author:** ![tungaw2004](https://community.unix.com/letter_avatar/tungaw2004/32/5_5575768a8748004e209b776fc1b2916d.png) [@tungaw2004](https://community.unix.com/u/tungaw2004)\
**Post date:** [March 23, 2007, 1:53pm UTC](https://community.unix.com/t/search-and-replace-different-fields/169995/3 "2007-03-23T13:53:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![asmita](https://community.unix.com/letter_avatar/asmita/32/5_5575768a8748004e209b776fc1b2916d.png) [@asmita](https://community.unix.com/u/asmita)\
**Post date:** [March 29, 2007, 3:16am UTC](https://community.unix.com/t/search-and-replace-different-fields/169995/4 "2007-03-29T03:16:42Z")

</div>

still m not very much clear abt the problem..  
can u explain it with another example. m not getting this example.
