Skip to content
Snippets Groups Projects
Commit 9fbac966 authored by roadscape's avatar roadscape
Browse files

add path option to bin/grep

parent a4ea5091
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
grep -rn $1 * --color=always --exclude-dir=docs/hive --exclude-dir=hivemind.egg-info | grep -v __pycache__ --color=auto
if [ -z "$2" ]
then
grep -rn $1 * --color=always --exclude-dir=docs/hive --exclude-dir=hivemind.egg-info | grep -v __pycache__ --color=auto
else
grep -rn $1 $2 --color=always --exclude-dir=docs/hive --exclude-dir=hivemind.egg-info | grep -v __pycache__ --color=auto
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment