I've got a folder containing hierarchy of a lot of files and folders. The 'ls -R > index.file' command generates a ~1650 lines file... 😱 What I would like to print out all the text files (html, css, php, js, etc), not images, pdfs, jar files, etc. with each new text file starting on a new page (most of them doesn't contain much and will probably just span 1 page anyway). Syntax colouring would be awesome, but isn't necessary, at all...
To complicate matters I would like to print to a pdf (or any other appropriate format) because
a) I would like to check that the correct files are chosen before starting a monster print job, and
b) I don't want to print all this on my home printer, a nice enough inkjet photo printer, but for this I want to take it somewhere with a fast laser printer.
I've tried setting the default printer to Adobe PDF 7.0 and used 'lpr foldername/*' command from the Terminal, which didn't go well... at all... (it made a pdf file with the name of the first subfolder and then continued to replace that file for a long while and then - when finished - deleted it).
I'm using a demo of BBEdit as my main text editor at the moment (considering to upgrade from TextWrangler), and I even though I can do a text search through all the files I don't see an option to open and/or print all files from a folder (including subfolders).
What do you reckon? Is there an easy way of doing this taht I'm just not seeing (or a semi-easy option, including some easy scripting and/or using Automator) or am I in for one H*** of a job?
To complicate matters I would like to print to a pdf (or any other appropriate format) because
a) I would like to check that the correct files are chosen before starting a monster print job, and
b) I don't want to print all this on my home printer, a nice enough inkjet photo printer, but for this I want to take it somewhere with a fast laser printer.
I've tried setting the default printer to Adobe PDF 7.0 and used 'lpr foldername/*' command from the Terminal, which didn't go well... at all... (it made a pdf file with the name of the first subfolder and then continued to replace that file for a long while and then - when finished - deleted it).
I'm using a demo of BBEdit as my main text editor at the moment (considering to upgrade from TextWrangler), and I even though I can do a text search through all the files I don't see an option to open and/or print all files from a folder (including subfolders).
What do you reckon? Is there an easy way of doing this taht I'm just not seeing (or a semi-easy option, including some easy scripting and/or using Automator) or am I in for one H*** of a job?