mirror of
https://github.com/wekan/wekan.git
synced 2025-04-19 11:44:42 -04:00
- Add find.sh bash script that ignores extra directories when searching.
xet7 uses this a lot when developing. Thanks to xet7 !
This commit is contained in:
parent
1683bcb3e5
commit
548d095223
1 changed files with 16 additions and 0 deletions
16
find.sh
Executable file
16
find.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Find text from all subdirectories
|
||||
# and ignore all temporary directories:
|
||||
# - node-modules = installed node modules
|
||||
# - .build = Wekan bundle that is combined from source. Do not edit these, these are deleted and recreated.
|
||||
# - .meteor = Meteor version, packages etc at .meteor/local
|
||||
# - .git = git history
|
||||
|
||||
# If less or more that 1 parameter, show usage.
|
||||
if (( $# != 1 )); then
|
||||
echo 'Usage: ./find.sh text-to-find'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
find . | grep -v node_modules | grep -v .build | grep -v .meteor | grep -v .git | xargs grep --no-messages $1 | less
|
Loading…
Add table
Reference in a new issue