25 lines
549 B
Bash
Executable File
25 lines
549 B
Bash
Executable File
#!/bin/sh
|
|
# Runs multiple instances of a program with single arguments passed in as the last argument.
|
|
# Requires: <program> <package (Devuan)>
|
|
# seq coreutils
|
|
# echo coreutils
|
|
|
|
if [ -z $USAGE_LOCK ] ; then
|
|
NAME="$(filename $0)"
|
|
USAGE="Usage: <singular args...> | $NAME <command> [args...]"
|
|
if usage "$1" "$USAGE" ; then exit ; fi
|
|
export USAGE_LOCK=1
|
|
fi
|
|
|
|
#IFS='
|
|
#'
|
|
|
|
|
|
ARGS="$(readpipeonce)"
|
|
while [ "$?" = "0" ] ; do
|
|
if [ "$ARGS" != "" ] ; then
|
|
echoordo "$@" "$ARGS"
|
|
fi
|
|
ARGS="$(readpipeonce)"
|
|
done
|