#!/bin/bash if [ -f TEX_final.tex ] then rm -f TEX_final.* rm -f database_sort rm -f database_sort.csv rm -f TEX fi ./latex_test.sh $1 $2 $3 $4 pdflatex TEX_final.tex > log.txt pdflatex TEX_final.tex >> log1.txt pdflatex TEX_final.tex >> log1.txt pdflatex TEX_final.tex >> log1.txt rm log1.txt