Hi, I have the following file:
DRIVE10 DRIVE1 DRIVE2 DRIVE3 DRIVE4 DRIVE5 DRIVE6 DRIVE7 DRIVE8 DRIVE9 Date
T50253 T30544 T30624 T10164 T50245 T50252 T10276 T10287 T10402 T50197 200501100000
T50253 T30559 T50245 T50252 T10276 T10287 T10402 200501100010
...
...
note: this list what tape is located in what drive at 10 minute intervals.
What I need from this is to summarize the results into how many tape types are mounted at the point in time.
eg.
Date 3590 3592
200501100000 6 4
200501100010 4 3
To get this data all tapes starting with T5 are of type 3592 and tapes starting with T1,T2,T3 are of type 3590
I know this is probably a simple one line piece of code but I can't get it working... any suggestions?
DRIVE10 DRIVE1 DRIVE2 DRIVE3 DRIVE4 DRIVE5 DRIVE6 DRIVE7 DRIVE8 DRIVE9 Date
T50253 T30544 T30624 T10164 T50245 T50252 T10276 T10287 T10402 T50197 200501100000
T50253 T30559 T50245 T50252 T10276 T10287 T10402 200501100010
...
...
note: this list what tape is located in what drive at 10 minute intervals.
What I need from this is to summarize the results into how many tape types are mounted at the point in time.
eg.
Date 3590 3592
200501100000 6 4
200501100010 4 3
To get this data all tapes starting with T5 are of type 3592 and tapes starting with T1,T2,T3 are of type 3590
I know this is probably a simple one line piece of code but I can't get it working... any suggestions?