Greetings fellow holy men.
I have a big problem, which tests my faith. Help me find the right path of Perl.
The Problem is this: I'm am getting this out of our IBM provided TSM system (It's a backup system). I need to process the information back to one of my databases. I started using Perl 1 year ago, and it has been great. But now I have been hit by a nut I can't crack.
A00002 \\a00002\c$ 2 WinNT NTFS Yes 73,626MB 42.5
A00003 / 1 Linux86 EXT3 No 38,289MB 29.8
A00004
A00004 \Sys- 1 WinNT VSS Yes 0 KB 0.0
temState\-
NULL\Syst-
em
In the line with A00004 the second column is broken up where the - sign is. Is there a way to fix this using regex?
So I end up with something that looks like this
A00004 \SystemState\NULL\System 1 WinNT VSS Yes 0 KB 0.0
The original document contains about 800-900 lines.
Also please keep in mind that I'm a newbie at perl so writing the solution using simple answers such as "ju
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.