No one sees the real me

仮想化PF基盤SE

grep -o -P

[root@naoki105 0816]# grep -oP "(?<=「).+(?=」)" samplist
aiueookami
matane
[root@naoki105 0816]# cat samplist
「aiueookami」


「matane」

[root@naoki105 0816]# cat sam3
[naoki]

        [yuuka]

--------------------------------------
[kento]
[root@naoki105 0816]#

結果

[root@naoki105 0816]# grep -oP '(?<=\[).+(?=\])' sam3
naoki
yuuka
kento
[root@naoki105 0816]#
``
  • grep -oP “(?<=[).+(?=])” hogehoge *