Now when the 'Bash_script002.sh' gets created and as it contains the awk script which inturns contains variables $1, $2 as array a[] indexes; the resultant 'Bash_script002.sh' contains only the following:
To keep the forums high quality for all users, please take the time to format your posts correctly.
Use Code Tags when you post any code or data samples so others can easily read your code.
You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags and by hand.)
Avoid adding color or different fonts and font size to your posts.
Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
I am new to scripting. After searching the forums, this is about the closest to what i'm looking for. I am trying to find a particular sting in a file and replace the next line, roughly about 1500 times in the file. I have been trying to do this with sed, but i haven't had the best of luck. The string that i need to replace with is in another file in csv format. example:
first found instance in file1 is replaced with line 1 in csv file
second found instance in file1 is replaced with line 2 in csv file and so on.
When i say i'm brand new to scripting i mean BRAND new. I'm taking some classes, but i need to get this done as soon as possible and what i have learned so far hasn't gotten me much closer. any help ya'll can give would be greatly appreciated.
Thanks!