View Single Post

  #3 (permalink)  
Old 09-17-2005, 02:13 AM
kavi1
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by vivek
Sorry but i'm not getting your idea. Let us assume

File A
Code:
A_Line_1
A_Line_2
A_Line_3
File B
Code:
B_Line_1
B_Line_2
B_Line_3
So what output you wanna? Somethink like as follows:
Code:
B_Line_1
B_Line_2
B_Line_3
A_Line_1
A_Line_2
A_Line_3
???
well its like this: we only have file A with the lines as u have put above.
Now i want the output file lets say file B as
A_line3
A_line2
A_line1.
thats all
What should be the shell script (using sed??) to get file B?
Reply With Quote