mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
find, findfile
This commit is contained in:
parent
bbe7bb642b
commit
1345fc2d46
4
filescontaining.sh
Executable file
4
filescontaining.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
find . -name .git -prune -o -name target -prune -o -type f -exec grep -H "$1" {} \; \
|
||||
| awk -F: '{print $1}' | uniq
|
3
find.sh
Executable file
3
find.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
find . -name .git -prune -o -name target -prune -o -type f -exec grep -H "$1" {} \;
|
4
findfile.sh
Executable file
4
findfile.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
find . -name .git -prune -o -name target -prune -o -name "$1" -print
|
||||
|
Loading…
Reference in New Issue
Block a user