Please assist:
I have several files and all of the files have the same data format like following:
All I need to get item next to "name" field and the "address" field from each file which has only 8 characters in "name" field.
so the output should be:
ams00ark(spcae)10.1.1.12
ams01ark(spcae) 10.1.1.12
per01adp(spcae) 10.1.1.12
start item
name ams00ark
on_off 1
group various
suppress Y
auto_delete N
read_s 123456
write_s 5897856
address 10.1.1.12
terminal 362
icmp_v 5
grade 0
auto_pro 0
time_key_status 0
e-s_ 0
criteria_level 0
end node
start item
name ams01ark
on_off 1
group various
suppress Y
auto_delete N
read_s 123456
write_s 5897856
address 10.1.1.12
terminal 362
icmp_v 5
grade 0
auto_pro 0
time_key_status 0
e-s_ 0
criteria_level 0
end node
start item
name prt00amsten
on_off 1
group various
suppress Y
auto_delete N
read_s 123456
write_s 5897856
address 10.1.1.12
terminal 362
icmp_v 5
grade 0
auto_pro 0
time_key_status 0
e-s_ 0
criteria_level 0
end node
start item
name per01adp
on_off 1
group various
suppress Y
auto_delete N
read_s 123456
write_s 5897856
address 10.1.1.12
terminal 362
icmp_v 5
grade 0
auto_pro 0
time_key_status 0
e-s_ 0
criteria_level 0
end node
Thank you