Results 1 to 2 of 2
Hi all,
I have two files using grep i'm getting required output in "outputfile.txt" but i need to format it.
Code:
grep "$line" sampleMbr.txt >> outputfile.txt
grep "$line" sampleMbrTerm.txt >> ...
- 04-24-2009 #1
shell program + format the output
Hi all,
I have two files using grep i'm getting required output in "outputfile.txt" but i need to format it.
Code:grep "$line" sampleMbr.txt >> outputfile.txt grep "$line" sampleMbrTerm.txt >> outputfile.txt
Code:#cat outputfile.txt sometext1 sometext2 sometext3
but i want to output as
how to achieve this?Code:sometext1 sometext2 sometext3
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 04-24-2009 #2
tr command works
tr '\n' ' '- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote