play with reading many args
This commit is contained in:
parent
22e9f57f0f
commit
a084577951
8
urchin
8
urchin
@ -226,6 +226,14 @@ plural () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
read_many() {
|
||||||
|
if delimiter="${1}" && shift; then
|
||||||
|
while test "${#}" -gt 0; do
|
||||||
|
echo "while read -d '${delimiter}'; do"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
has_shebang_line() {
|
has_shebang_line() {
|
||||||
head -n 1 "${1}" | grep -v '^#!/bin/sh$' | grep -q '^#!'
|
head -n 1 "${1}" | grep -v '^#!/bin/sh$' | grep -q '^#!'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user