Search Results

Search: Posts Made By: pitccorp01
3,563
Posted By pitccorp01
the awk statement only updates the first line for...
the awk statement only updates the first line for example:

*/------------------John Doe (new name)---------------------*/
Employee name1: Tom Smith (old name)
Address:
City State:
Telephone...
3,563
Posted By pitccorp01
My apologies! I gave you the condensed version of...
My apologies! I gave you the condensed version of FileB. Here is the format of FileB in its entirety:

*/------------------Employee name 1 ---------------------*/
Employee name1:
Address:
City...
3,563
Posted By pitccorp01
Ok. I used the awk statement (nice!) but this...
Ok. I used the awk statement (nice!) but this statement only changes the first occurs of the old name to the new name. Any suggestions?

Thanks,
Anthony
3,563
Posted By pitccorp01
I like the awk approach. How can I use the awk...
I like the awk approach. How can I use the awk statement for FileA that is 50 lines long?
3,563
Posted By pitccorp01
Actually, I need to keep the contents of the...
Actually, I need to keep the contents of the original file in tact changing only the sed substitutions.

Thanks,
Anthony
3,563
Posted By pitccorp01
Thanks again for the input. How can I use vi...
Thanks again for the input. How can I use vi command inside the shell script (/bin/sh) to make the substitutions and save the updates to a new file? I am having problems with the format using sed.
...
3,563
Posted By pitccorp01
Thanks for your assistance. After making the...
Thanks for your assistance. After making the changes that you suggested, I am getting the correct substitution.


Best regards,
Anthony
3,563
Posted By pitccorp01
Problem updated file with new entries
Hi,

I have a file, fileA, that consists of two fields. Field 1 has an old object name, and field 2 has a new object name. I would like to search and replace a master file, FileB, by substituting...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 12:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy