- 论坛徽章:
- 93
|
回复 1# 与天笑
看了下,只是要引号里的内容是吗?awk 是好实现,但是这不是正则了:- [seesea@UC ~]$ cat file
- IPV4: "IPv4",
- IPV6: "IPv6",
- INTERNET_IPV4: "Internet IPv4",
- INTERNET_IPV6: "Internet IPv6",
- MAC_ADDRESS: "MAC Address",
- IP_ADDRESS: "IP Address",
- SUBNET_MASK: "Subnet Mask",
- DEFAULT_GATEWAY: "Default Gateway",
- PRIMARYDNS: "Primary DNS",
- SECONDARYDNS:"Secondary DNS",
- CONNTYPE:"Connection Type",
- [seesea@UC ~]$ awk -F'"' '{print $2}' file
- IPv4
- IPv6
- Internet IPv4
- Internet IPv6
- MAC Address
- IP Address
- Subnet Mask
- Default Gateway
- Primary DNS
- Secondary DNS
- Connection Type
复制代码 |
|