projects
/
cmccabe-bin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d4eddc7a4204cb25b0b13221adfd6479529f012c
[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