I have an input file like this
interface Serial10/0/7:11.1 point-to-point
description CLIENT:SA_INSTITUTO ANGLO MEXICANO Sitio Metepec 104452:0,165
bandwidth 64
ip vrf forwarding INSTITUTO-ANGLO
ip address 192.168.148.217 255.255.255.252
no ip directed-broadcast
frame-relay interface-dlci 108
class Link_30-50-0-128
!
I can give the fields like this
interface Serial
description CLIENT:
ip address
class
And I want the repective values as,
10/0/7:11.1|SA_INSTITUTO ANGLO MEXICANO Sitio Metepec |192.168.148.217 |Link_30-50-0-128
Thanx a lot,As Iam new with awk,can u explain me the scripts.
And one more question,If we got a number of records,how can we segregate it by another line.
For Eg:
interface Serial10/0/2:1
description CLIENT:SEIEM_TOLUCA_CORP_1024K 101983:0,542
no ip address
no ip directed-broadcast
encapsulation frame-relay
no fair-queue
!
interface Serial10/0/2:1.1 point-to-point
description CLIENT:SEIEM_TOLUCA_CORP_1024K 101983:0,542
ip vrf forwarding SEIEM
ip address 192.168.158.77 255.255.255.252
no ip directed-broadcast
frame-relay interface-dlci 436
class Link_20-60-0-1024
!