mirror of
https://github.com/wekan/wekan.git
synced 2025-04-18 19:24:50 -04:00
16 lines
567 B
Bash
Executable file
16 lines
567 B
Bash
Executable file
#!/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
|