Greetings,
I have a log file like so, and I am trying to get the date on the next line
after "Start..." line. So for the log below I'd like to get the output

04/06/05
05/06/05
06/06/05

But I also need to re-format that so the end result becomes:

2005-04-06
2005-05-06
2005-06-06

Any hints?




MachineName1
Start             | Finish            | Outcome: User: Message
04/06/05 11:45:08 | 04/06/05 11:45:10 | Success: userx: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 35, access mode
04/06/05 12:11:20 | 04/06/05 12:11:22 | Success: userx: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 8, access mode
04/12/05 09:36:20 | 04/12/05 09:36:22 | Success: user2: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 161, access mode
04/12/05 13:59:32 | 04/12/05 13:59:33 | Success: user4: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 89, access mode
1
MachineName2
Start             | Finish            | Outcome: User: Message
05/06/05 11:45:08 | 04/06/05 11:45:10 | Success: userx: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 35, access mode
05/06/05 12:11:20 | 04/06/05 12:11:22 | Success: userx: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 8, access mode
05/12/05 09:36:20 | 04/12/05 09:36:22 | Success: user2: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 161, access mode
05/12/05 13:59:32 | 04/12/05 13:59:33 | Success: user4: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 89, access mode
1
MachineName3
Start             | Finish            | Outcome: User: Message
06/06/05 11:45:08 | 04/06/05 11:45:10 | Success: userx: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 35, access mode
06/06/05 12:11:20 | 04/06/05 12:11:22 | Success: userx: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 8, access mode
06/12/05 09:36:20 | 04/12/05 09:36:22 | Success: user2: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 161, access mode
06/12/05 13:59:32 | 04/12/05 13:59:33 | Success: user4: Putting interface
basalt/test/eth1 (tsw4/fa0/34) into VLAN 89, access mode
1

Reply via email to