Avoid use of wc command
This commit is contained in:
parent
c2ba909533
commit
a2633e0198
|
@ -6,6 +6,11 @@ echo_cmd() {
|
|||
return $?
|
||||
}
|
||||
|
||||
# Lets us avoid use of wc
|
||||
numwords() {
|
||||
echo "$#"
|
||||
}
|
||||
|
||||
find_tool() {
|
||||
while [ -n "$1" ]; do
|
||||
if [ -n "$1" ] && command -v "$1" > /dev/null; then
|
||||
|
|
Loading…
Reference in New Issue