7 lines
135 B
Bash
7 lines
135 B
Bash
|
#!/bin/sh
|
||
|
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
|
||
|
echo "Usage: $0 cmd source output.txt"
|
||
|
exit 1
|
||
|
fi
|
||
|
"$1" "$2" > "$3"
|