matching text in quotes (newbie)

前端 未结 5 1209
礼貌的吻别
礼貌的吻别 2021-02-09 21:22

I\'m getting totally lost in shell programming, mainly because every site I use offers different tool to do pattern matching. So my question is what tool to use to do simple pat

5条回答
  •  名媛妹妹
    2021-02-09 21:54

    Well, nobody mentioned cut yet, so, to prove that there are many ways to do something with the shell:

    % grep '^zone' /etc/bind/named.conf  | cut -d' ' -f2
    "gennic.net"
    "generic-nic.net"
    "dyn.generic-nic.net"
    "langtag.net"
    

提交回复
热议问题