Thursday, September 6, 2012

Unix lover: snippet 1.

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.


cat <<EOF | sed -e's/\\input{\(.*\)}/\1.tex/' | xargs touch
Post a Comment