Das Skript convertiert csv Zeilen mit “;” als Trenner in LaTeX kompatible Tabellenzeilen

csv2latextable.script

 
if [ -z $1 ] 
then
  echo "No file to convert given to script - exit now"
  exit
fi
 
# for ";" seperation
sed "s/;/ \& /g; s/$/ \\\tabularnewline/" $1 > $1.latextable.txt
 
# for tabular seperation
# sed "s/\t/ \& /g; s/$/ \\\tabularnewline/" $1 > $1.latextable.tex