M bin/csvdel => bin/csvdel +4 -4
@@ 15,15 15,15 @@ error()
exit $status
}
+delim=${DELIM:-,}
+prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
+tmpf=$1~
+
if [ $# -lt 3 ]; then
usage
exit 1
fi
-delim=${DELIM:-,}
-prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
-tmpf=$1~
-
[ -w "$1" ] || error 1 \`$1\' not writeable
cp "$1" "$tmpf"
M bin/csvedit => bin/csvedit +4 -4
@@ 17,15 17,15 @@ error()
exit $status
}
+delim=${DELIM:-,}
+prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
+tmpf=$1~
+
if [ $# -lt 3 ]; then
usage
exit 1
fi
-delim=${DELIM:-,}
-prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
-tmpf=$1~
-
[ -w "$1" ] || error 1 \`$1\' not writeable
which vipe &>/dev/null || error 1 vipe not found
M bin/csvins => bin/csvins +4 -4
@@ 17,15 17,15 @@ error()
exit $status
}
+delim=${DELIM:-,}
+prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
+tmpf=$1~
+
if [ $# -lt 1 -o $# -gt 2 ]; then
usage
exit 1
fi
-delim=${DELIM:-,}
-prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
-tmpf=$1~
-
which vipe &>/dev/null || error 1 vipe not found
touch "$1"
M bin/tsvdel => bin/tsvdel +3 -3
@@ 15,14 15,14 @@ error()
exit $status
}
+prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
+tmpf=$1~
+
if [ $# -lt 3 ]; then
usage
exit 1
fi
-prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
-tmpf=$1~
-
[ -w "$1" ] || error 1 \`$1\' not writeable
cp "$1" "$tmpf"
M bin/tsvedit => bin/tsvedit +3 -3
@@ 17,14 17,14 @@ error()
exit $status
}
+prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
+tmpf=$1~
+
if [ $# -lt 3 ]; then
usage
exit 1
fi
-prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
-tmpf=$1~
-
[ -w "$1" ] || error 1 \`$1\' not writeable
which vipe &>/dev/null || error 1 vipe not found
M bin/tsvins => bin/tsvins +3 -3
@@ 17,14 17,14 @@ error()
exit $status
}
+prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
+tmpf=$1~
+
if [ $# -lt 1 -o $# -gt 2 ]; then
usage
exit 1
fi
-prog=$(echo $0 | sed 's@.*/\([^/]\+\)$@\1@g')
-tmpf=$1~
-
which vipe &>/dev/null || error 1 vipe not found
touch "$1"