Reading an entire line from a text file

Closed
inteladu - Sep 22, 2009 at 03:56 AM
closeup22 Posts 8923 Registration date Friday May 15, 2009 Status Member Last seen October 7, 2010 - Sep 22, 2009 at 08:19 AM
Hello,
I have a text file containing multiple lines example below:

_Total: 445.32 GB 116.33 GB 328.99 GB 73.88%
J: NTFS 76.38 GB 66.87 MB 76.32 GB 99.91%
D: NTFS 99.42 GB 47.04 GB 52.38 GB 52.69%
K: NTFS 51.19 GB 17.95 GB 33.23 GB 64.92%
H: NTFS 51.19 GB 18.41 GB 32.78 GB 64.03%
G: NTFS 33.78 GB 4.18 GB 29.59 GB 87.6%
E: NTFS 33.78 GB 4.45 GB 29.33 GB 86.82%
C: NTFS 39.76 GB 11.47 GB 28.28 GB 71.14%
I: NTFS 26.00 GB 223.18 MB 25.78 GB 99.14%
F: NTFS 33.78 GB 12.51 GB 21.27 GB 62.97%
Drv Total Used Free %Free
-------------------------------------------------------
-------------------------------------------------------

Now, I need to read only certain lines (entirely) and output the same to a another text file.
So, that is the the other text file I need say,

G: NTFS 33.78 GB 4.18 GB 29.59 GB 87.6%
E: NTFS 33.78 GB 4.45 GB 29.33 GB 86.82%

only.

Any help on this would be really appreciated.

Thanks,
intladu
Related:

1 response

closeup22 Posts 8923 Registration date Friday May 15, 2009 Status Member Last seen October 7, 2010 2,099
Sep 22, 2009 at 08:19 AM
hello sir,

its strange to know what you really

mean to say by these lines

can you please provide more information

on results expected

Thanks
0