Avoid use of wc command

This commit is contained in:
T. Joseph Carter 2015-03-27 18:07:29 -07:00
parent c2ba909533
commit a2633e0198

View File

@ -6,6 +6,11 @@ echo_cmd() {
return $? return $?
} }
# Lets us avoid use of wc
numwords() {
echo "$#"
}
find_tool() { find_tool() {
while [ -n "$1" ]; do while [ -n "$1" ]; do
if [ -n "$1" ] && command -v "$1" > /dev/null; then if [ -n "$1" ] && command -v "$1" > /dev/null; then