Yep i got it....I can wait.
---------- Post updated 12-13-12 at 01:24 PM ---------- Previous update was 12-12-12 at 07:13 PM ----------
Hi unix lovers,
I am trying to sort this issue for the past one week and i am not able to do.
I have already explained my problem to you guys.
This is a edited version of the post for being more explanatory.
The problem is I have to write a shell script in which i execute 2 commands,both of them stored in two different files.
The contents of the first file say file1.txt is as below
------------------------------------------------------------------------ string | emailid | 2012-06-21 05:00:01 +0530 (Thu, 21 Jun 2012) | 1 line Changed paths: M /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah some more string, blah blah blah ------------------------------------------------------------------------ string | emailid | 2012-06-21 22:27:37 +0530 (Thu, 21 Jun 2012) | 1 line Changed paths: M /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah some more string, blah blah blah ------------------------------------------------------------------------ string | emailid | 2012-06-21 22:45:06 +0530 (Thu, 21 Jun 2012) | 1 line Changed paths: M /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah some more string, blah blah blah ------------------------------------------------------------------------
The contents of file1.txt are in a single line in a file
The contents of the 2nd file say file2.txt is as shown below,
link1
link2
link3
The contents of file2.txt are line by line.
Now the issue is i need to place the contents of the file2.txt at a specific location of file1.txt and the output should be as shown below say file3.txt
------------------------------------------------------------------------ string | emailid | 2012-06-21 05:00:01 +0530 (Thu, 21 Jun 2012) | 1 line Changed paths: M /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah
link1
some more string, blah blah blah ------------------------------------------------------------------------ string | emailid | 2012-06-21 22:27:37 +0530 (Thu, 21 Jun 2012) | 1 line Changed paths: M /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah
link2
some more string, blah blah blah ------------------------------------------------------------------------ string | emailid | 2012-06-21 22:45:06 +0530 (Thu, 21 Jun 2012) | 1 line Changed paths: M /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah
link3
some more string, blah blah blah ------------------------------------------------------------------------
Please help me out in accomplishing this task and i quote that i am a newbeee to unix and shell scripting
I know only the basics of SED,AWK and other basic commands of unix.
Thanks,
kashyap.
---------- Post updated at 04:09 PM ---------- Previous update was at 01:24 PM ----------
Dear admin,
I waited for 24 hrs and i am not able to get a suggestion on my issue,
Please help me out in this regard