mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-22 15:37:59 +00:00
15 lines
234 B
Bash
Executable file
15 lines
234 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: $0 {case name}" 1>&2
|
|
exit 1
|
|
fi
|
|
name="$1"
|
|
shift
|
|
|
|
sh=reg_test/case-${name}.sh
|
|
if [ -f "$sh" ]; then
|
|
echo "Case file $sh already exists" 1>&2
|
|
exit 1
|
|
fi
|
|
cat "$@" | uind -s > $sh
|