dpk_wal
asked on
modify text data with additional column
Pls refer to my earlier question:
https://www.experts-exchange.com/questions/26836792/extract-and-modify-data-from-text-file.html
If there are additional columns like time-range; please help in handling that.
Sample text:
permit tcp 10_12_10_0 23 host_10_14_0_181 range 1525 1527 time-range 2Days
permit tcp 10_12_10_0 23 host_10_14_4_16 range 1525 1527 time-range 30Days
I would need final output as:
scheduler-name 2Days
source 10_12_10_0_23 destination host_10_14_0_181 application tcp_1525_1527
scheduler-name 30Days
source 10_12_10_0_23 destination host_10_14_0_181 application tcp_1525_1527
Other than all existing rules; need one additional line for each time-range value.
Thank you.
https://www.experts-exchange.com/questions/26836792/extract-and-modify-data-from-text-file.html
If there are additional columns like time-range; please help in handling that.
Sample text:
permit tcp 10_12_10_0 23 host_10_14_0_181 range 1525 1527 time-range 2Days
permit tcp 10_12_10_0 23 host_10_14_4_16 range 1525 1527 time-range 30Days
I would need final output as:
scheduler-name 2Days
source 10_12_10_0_23 destination host_10_14_0_181 application tcp_1525_1527
scheduler-name 30Days
source 10_12_10_0_23 destination host_10_14_0_181 application tcp_1525_1527
Other than all existing rules; need one additional line for each time-range value.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER