How to use sed to extract substring

前端 未结 5 1696
执笔经年
执笔经年 2020-12-07 18:23

I have a file containing the following lines:

  
  &         


        
5条回答
  •  感动是毒
    2020-12-07 19:16

    You want awk.

    This would be a quick and dirty hack:

    awk -F "\"" '{print $2}' /tmp/file.txt

    PortMappingEnabled
    PortMappingLeaseDuration
    RemoteHost
    ExternalPort
    ExternalPortEndRange
    InternalPort
    PortMappingProtocol
    InternalClient
    PortMappingDescription
    

提交回复
热议问题