summaryrefslogtreecommitdiffstats
path: root/find.sh
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-01-04 12:18:24 +0200
committerLauri Ojansivu <x@xet7.org>2019-01-04 12:18:24 +0200
commit4114d089619fcf28c2f2ffb66957fdd25181747f (patch)
treef79983c607671f3634295855cae6acfd75583370 /find.sh
parent98917523fced8136dcc803f77800fa038c8294d0 (diff)
parentff65b37336689afa87f1e1dcf0cea8a5cd60311f (diff)
downloadwekan-4114d089619fcf28c2f2ffb66957fdd25181747f.tar.gz
wekan-4114d089619fcf28c2f2ffb66957fdd25181747f.tar.bz2
wekan-4114d089619fcf28c2f2ffb66957fdd25181747f.zip
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'find.sh')
-rwxr-xr-xfind.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/find.sh b/find.sh
new file mode 100755
index 00000000..b552866e
--- /dev/null
+++ b/find.sh
@@ -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