aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-07 11:10:33 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-07 11:10:33 +1300
commit1cb2b2f7ba93d0b18d1cf82a0c84c11278823dc1 (patch)
tree98ee9462a423436430ed3a143c85335696f33f7b /bin
parentTweak FS for gwp(1df) (diff)
downloaddotfiles-1cb2b2f7ba93d0b18d1cf82a0c84c11278823dc1.tar.gz
dotfiles-1cb2b2f7ba93d0b18d1cf82a0c84c11278823dc1.zip
Add loc(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/loc7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/loc b/bin/loc
new file mode 100755
index 00000000..642a081c
--- /dev/null
+++ b/bin/loc
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ "$#" -eq 0 ] ; then
+ printf 'loc: Need a search term\n'
+fi
+for pat ; do
+ find . -name '*'"$pat"'*'
+done