Help me batch print text files on the Mac
November 18, 2009 1:19 PM
Subscribe
OS X: I want to batch print all the files in a source-code library. They are actionscript files, which means they are text files that all end in a .as extension. The files are in a complex directory structure (one root folder but files in multiple subfolders), and there are non .as files that I don't want printed. When the files print, I need some kind of separator ( spaces, asterisks, new page...) between each file.
I can't seem to find a FILTERABLE batch printing app for OSX -- one that can print all files (of a certain type or naming scheme) in all folders and subfolders starting at a certain root.
I thought about opening Terminal and doing this:
find . -name "*.as" | xargs cat > outfile.txt
And then printing outfile.txt. That would be perfect except that I won't easily be able to tell where one file begins and another ends. I need
*****************
or some other delimiter between files.
If it matters, this is for OS X Leopard.
posted by grumblebee to computers & internet (6 comments total)
You could also pipe the output of find . -name "*.as" to lpr.
posted by mebibyte at 1:45 PM on November 18, 2009