diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-07 11:10:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-07 11:10:33 +1300 |
commit | 1cb2b2f7ba93d0b18d1cf82a0c84c11278823dc1 (patch) | |
tree | 98ee9462a423436430ed3a143c85335696f33f7b /bin | |
parent | Tweak FS for gwp(1df) (diff) | |
download | dotfiles-1cb2b2f7ba93d0b18d1cf82a0c84c11278823dc1.tar.gz dotfiles-1cb2b2f7ba93d0b18d1cf82a0c84c11278823dc1.zip |
Add loc(1df)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/loc | 7 |
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 |