|
@@ -46,10 +46,10 @@ FFOO_PRETTY=your_own_format
|
46
|
46
|
|
47
|
47
|
|
48
|
48
|
##
|
49
|
|
-## config.sh -- config file grepping
|
|
49
|
+## inigrep.sh -- inigrep file grepping
|
50
|
50
|
##
|
51
|
51
|
|
52
|
|
-ffoo import config
|
|
52
|
+ffoo import inigrep
|
53
|
53
|
|
54
|
54
|
# a sample INI file
|
55
|
55
|
#
|
|
@@ -72,7 +72,7 @@ EOF
|
72
|
72
|
|
73
|
73
|
# read as you need
|
74
|
74
|
#
|
75
|
|
-FFOO_CONFIG_PATH=$HOME/.demo # just tell us the path
|
|
75
|
+FFOO_INIGREP_PATH=$HOME/.demo # just tell us the path
|
76
|
76
|
inigrep -s foo.bar -k baz foo.ini # prints "qux"
|
77
|
77
|
inigrep -p foo.bar.baz foo.ini # ...short for above
|
78
|
78
|
inigrep -p foo.bar.baz # ...even shorter (foo hints foo.ini)
|
|
@@ -93,7 +93,7 @@ EOF
|
93
|
93
|
|
94
|
94
|
# this works similar to PATH
|
95
|
95
|
#
|
96
|
|
-FFOO_CONFIG_PATH=$HOME/.demo-private:$HOME/.demo
|
|
96
|
+FFOO_INIGREP_PATH=$HOME/.demo-private:$HOME/.demo
|
97
|
97
|
inigrep -p foo.bar.baz2 # the private file wins -- "secret qux!"
|
98
|
98
|
inigrep -j -p foo.bar.baz2 # but -j causes them to be joined:
|
99
|
99
|
# secret qux
|