Skip to content
Snippets Groups Projects
Commit adca1d58 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Vorbereitung 23.5.2024

parent 8ea4663b
Branches
No related tags found
No related merge requests found
#!/bin/bash
IFS='' read TXT
if echo "$TXT" | file - | grep -q UTF-8; then
RTXT="$TXT"
unrecode="cat"
else
RTXT=$(echo "$TXT" | recode latin1..utf8)
unrecode="recode utf8..latin1"
fi
if [ -z "$RTXT" ]; then
SUFFIX=""
elif echo "$RTXT" | grep -q "[?.!]$"; then
SUFFIX=" "
else
SUFFIX=", "
fi
PREFIX=$(echo "$RTXT" | sed -e 's/^\([^0-9A-Za-zÄÖÜäöüß]*\).*/\1/')
DATE=$($HOME/usr/bin/hd)
FULLTXT="$(echo "$RTXT" | sed -e 's/^[^0-9A-Za-zÄÖÜäöüß]*//')$SUFFIX$DATE"
UNDERLINE=$(echo "$FULLTXT" | sed -e 's/./~/g')
INDENT=$(echo "$PREFIX" | sed -e 's/./ /g')
#echo "|$TXT|"
#echo "|$RTXT|"
#echo "|$PREFIX|"
#echo "|$FULLTXT|"
echo -e "$PREFIX$FULLTXT\n$INDENT$UNDERLINE" | $unrecode
../common/Zeichen_123.pdf
\ No newline at end of file
File added
This diff is collapsed.
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
../common/pgslides.sty
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment