LoginSignup
0

More than 5 years have passed since last update.

SmartGit + grep > v0.1やv1.0, v10.5などの文字列をgrepする > grep 'v[0-9]\{1,3\}\.' */memo.txt

Last updated at Posted at 2017-10-06
動作環境
Windows 7 Pro (32bit)
SmartGit Version 17.0.4 #10132
SmartGit付属のMinGW32
grep (GNU grep) 2.24

v0.1やv1.0, v10.5などの文字列をgrepしたい。

参考: http://www.robelle.com/smugbook/regexpr.html

$ grep 'v[0-9]\{1,3\}\.' */memo.txt
AAA/memo.txt:v0.1
BBB/memo.txt:v0.1
CCC/memo.txt:v0.2

DebuggexBetaで見ると以下のようになる。
https://www.debuggex.com/r/fPLlms9Gf9LkXXdf

vの後は2桁でもいいかもしれない。

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