LoginSignup
0
2

More than 1 year has passed since last update.

Linux | grep -o でマッチした文字列だけを抜き出す

Last updated at Posted at 2017-03-17

普通なら文字列全体が返るところを

$ echo 'Find me please'
Find me please

マッチした文字だけ返してくれる

$ echo 'Find me please' | grep -o me
me

環境

  • bash 4.4
  • Mac OSX

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2