sed -ne '/not found/p' fileA >> fileB
This code delivers the output but still not in the desired format. The output looks like '\\abc not found
\\def not found'
I need to display the output in this format.
\\ abc not found
\\ def not found
Thanks!!!!
---------- Post updated 05-19-10 at 08:23 AM ---------- Previous update was 05-18-10 at 03:58 PM ----------
Hi,
I am using Putty for unix shell scripting. I need some suggestions in splitting the 'output line' into two separate lines. Originally I am getting the input from another text file A. And when looking at the content in the text file A, the lines are separated in the way I want. After that I am passing the contents of the text file A to the text file B. The text file B already has some output data in it. All I want is to merge the text from file A into file B. I succeed in doing so but the contents from file A are now displayed in same line in text file B.
For Example:
In Text file A: / abc not found
/ def not found
/ ghi not found
But when it is copied to text file B, it looks like,
The missing items are:
/ abc not found / def not found / ghi not found
But I want the output file in this format:
The missing items are:
/ abc not found
/ def not found
/ ghi not found
Thanks!!!
Could any one help fixing this issue....