I love Unix so much... I had this latex file and I wrote the names of the files of the intended chapters to be included in the mainfile. Then I realized that I had to basically write all the filenames or do some crappy copy and paste.
However...
cat <<EOF | sed -e's/\\input{\(.*\)}/\1.tex/' | xargs touch
\input{intro}
\input{cha1}
\input{cha2}
\input{cha3}
\input{cha4}
\input{cha5}
\input{conclusions}
EOF
1 comment:
Is this reading multiple input files in unix at a time?
Grep Command
Post a Comment