5

Shellscript to print contents of all scripts contained in a directory

view full story
linux-howto

http://unix.stackexchange.com – So, I'm trying to write a shellscript which prints a tree-view for a specific directory and it's subdirs to pdf via latex, as well as the titles and contents of all scripts contained within that primary directory. The treeview works like a charm, but I have no idea how to get the printing of the scripts to work. Code thus far: #!/bin/bash # Script to export directory with pdflatex # Generate .tex file # Directory Listing echo "\documentclass[11pt,a4paper,oneside]{article}" > tmp.tex echo "\usepackage{fullpage}" >> tmp.tex echo "\begin{document}" >> tmp.tex echo "\section{Lis (HowTos)