2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
error() {
echo "$*"
echo >&2 "$0: $*"
exit 1
}
@ -8,8 +8,9 @@ error() {
file=$1
start=$2
end=$3
count=$3
end=`expr $start + $count - 1`
[ -f $file ] || error "$file does not exist"
[ -f "$file" ] || error "$file does not exist"
sed $start,${end}d $file >/tmp/$$ && mv /tmp/$$ $file
sed "$start,${end}d" "$file" >/tmp/$$ && mv /tmp/$$ "$file"

View file

@ -1 +1 @@
sed -i $start,${end}d $file
sed -i "$start,${end}d" "$file"