2020-06-01 15:02:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
FILE=/tmp/$RANDOM
|
|
|
|
TOP=7
|
|
|
|
LEFT=2
|
|
|
|
MAXLENGTH=25
|
|
|
|
|
|
|
|
GIVENNAME=$1
|
|
|
|
SURNAME=$2
|
|
|
|
HOME=$3
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${#GIVENNAME} -gt $MAXLENGTH ] || [ ${#SURNAME} -gt $MAXLENGTH ] || [ ${#HOME} -gt $MAXLENGTH ]; then
|
|
|
|
echo "MAXLENGTH EXCEEDED."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
source ../include/nixdorf
|
|
|
|
init
|
|
|
|
|
2020-06-13 19:39:15 +00:00
|
|
|
makeNewline 1 $FILE
|
|
|
|
makeLeft $(($LEFT + 12)) $FILE
|
|
|
|
smallLetters $FILE
|
2021-01-05 18:27:13 +00:00
|
|
|
printf "/ C3Reg" >> $FILE
|
2020-06-13 19:39:15 +00:00
|
|
|
resetLetters $FILE
|
|
|
|
|
|
|
|
makeNewline $(($TOP - 1)) $FILE
|
2020-06-11 10:13:23 +00:00
|
|
|
makeLeft $LEFT $FILE
|
2020-06-01 15:02:43 +00:00
|
|
|
printf "$GIVENNAME" >> $FILE
|
|
|
|
|
2020-06-13 19:39:15 +00:00
|
|
|
makeNewline 3 $FILE
|
2020-06-11 10:13:23 +00:00
|
|
|
makeLeft $LEFT $FILE
|
2020-06-01 15:02:43 +00:00
|
|
|
printf "$SURNAME" >> $FILE
|
|
|
|
|
2020-06-11 10:13:23 +00:00
|
|
|
makeNewline 3 $FILE
|
|
|
|
makeLeft $LEFT $FILE
|
2020-06-01 15:02:43 +00:00
|
|
|
printf "$HOME" >> $FILE
|
|
|
|
|
2020-06-11 10:13:23 +00:00
|
|
|
makeNewline 4 $FILE
|
|
|
|
makeLeft $LEFT $FILE
|
2020-06-01 15:02:43 +00:00
|
|
|
|
|
|
|
if [ -n "$EVENT" ]; then
|
|
|
|
printf "$EVENT, $(date -I)" >> $FILE
|
|
|
|
else
|
|
|
|
printf "$(date -I)" >> $FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
printFile $FILE
|
|
|
|
rm $FILE
|