projects
/
cmccabe-bin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Makefile: add pickrand
[cmccabe-bin]
/
ff
1
#!/usr/bin/env bash
2
3
#
4
# find first
5
#
6
# Prints out the first file which matches the given pattern in the current directory subtree.
7
#
8
9
die() {
10
echo $@
11
exit 1
12
}
13
14
[[ $# == 1 ]] || die "You must specify exactly one argument"
15
TOFIND=$1
16
exec find . -name '*'${TOFIND}'*' -print -quit