初稿:
最終更新日: 2018-12-14 Fri 20:44
ホーム | 文書トップ | 目次

grep
MacでBSD grepの代わりにGNU

 1: > brew info grep
 2: grep: stable 3.1 (bottled)
 3: GNU grep, egrep and fgrep
 4: https://www.gnu.org/software/grep/
 5: /usr/local/Cellar/grep/3.1 (21 files, 861.4KB) *
 6:   Poured from bottle on 2018-06-12 at 17:09:43
 7: From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/grep.rb
 8: ==> Dependencies
 9: Build: pkg-config ✔
10: Required: pcre ✔
11: ==> Options
12: --with-default-names
13:     Do not prepend 'g' to the binary
14: ==> Caveats
15: The command has been installed with the prefix "g".
16: If you do not want the prefix, install using the "with-default-names"
17: option.
18: 
19: If you need to use these commands with their normal names, you
20: can add a "gnubin" directory to your PATH from your bashrc like:
21:   PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
22: 
23: Additionally, you can access their man pages with normal names if you add
24: the "gnuman" directory to your MANPATH from your bashrc as well:
25:   MANPATH="/usr/local/opt/grep/libexec/gnuman:$MANPATH"

著者: conao

Created: 2018-12-14 Fri 21:04

Validate