Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の文字列があります
msg="bbb. aaa.ccc. bbb.dddd. aaa.eee."
サブ文字列間の区切りはスペースです。
たとえば、「が存在するかどうかを確認したい"aaa.。上記のメッセージでは存在しません。
"aaa.
たとえば、「が存在するかどうかを確認したい "bbb.。上記のメッセージに存在します。
"bbb.
私はgrepで試しましたが、grepは部分文字列間のセパレータとして改行で動作します
どうやってするか?