diff options
author | typebrook <typebrook@gmail.com> | 2020-03-16 17:07:21 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-16 17:47:40 +0800 |
commit | f9e0764e889430adafa93ca78a775b43a2cb5d29 (patch) | |
tree | 0686197a5b0a21dd95af1b6f037e7b96eada3929 | |
parent | 54600dfdb86d5754ec6fa827438c97734ce195cf (diff) |
Add item for grep option
-rwxr-xr-x | gist | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -279,6 +279,7 @@ _show_list() { | |||
279 | } | 279 | } |
280 | 280 | ||
281 | # TODO support filenames, file contents | 281 | # TODO support filenames, file contents |
282 | # TODO add option to configure case-sensitive | ||
282 | _grep_content() { | 283 | _grep_content() { |
283 | if [[ -z $1 ]]; then echo 'Please give a pattern' && return 1; fi | 284 | if [[ -z $1 ]]; then echo 'Please give a pattern' && return 1; fi |
284 | while read -r index url _ _ _ _ _ _ description; do | 285 | while read -r index url _ _ _ _ _ _ description; do |