Hi,

I have a long file which contains like:
##################################################
         |     0    1    2    3    4    5    6
##################################################
Line   18 |           123
Line   19 |                abc
--------------------------------------------------
Line  332 |                    xyz
##################################################
         |     0    1    2    3    4    5    6
##################################################
Line   18 |       641
Line   19 |              GHI
--------------------------------------------------
Line  332 |                  vcx
##################################################
         |     0    1    2    3    4    5    6
##################################################
....

How do I sort this file so that
- all line 18 , i.e., comes under each other? And line 19 , and so on.
- removes the lines starting with ###
- removes the lines starting with ---
- removes the lines starting with spaces

So that what remains look like this:
...
Line   18 |           123
Line   18 |       641
Line   19 |                abc
Line   19 |              GHI
Line  332 |                    xyz
Line  332 |                  vcx
...


Best regards,
Eric

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

Reply via email to