How to print source code from the command line

Alex Kleider akleider at sonic.net
Thu Jan 1 15:24:07 PST 2015


Michael,

Here's a one line script that sits in my ~/bin directory under the name 
of
akprint.

#!/bin/bash
pr -o 5  -F -l 62 $* | lpr

You can change the numbers at will, (and find out what they represent 
using man pr.)

When ever I want to print some code:

akprint my_current_project.py

You'll undoubtedly want to rename it 'msprint' or something else:-)





More information about the sf-lug mailing list