0
$ grep 'tableName="' db.changelog.xml
<createTable tableName="MY_TABLE" schemaName="public">
$ grep 'tableName="[A-Z_]+"' db.changelog.xml
2番目のgrepは何も返しません。何故ですか?grepが[A-Z]を認識しない+
これは、デフォルトで設定されているLANGです。
$ echo $LANG
en_US.UTF-8
$ grep --version
grep (GNU grep) 2.24
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.