Skip to contentSkip to conversation

printing from command line

DISCUSSION walt 3 participants 3 messages Mar 22, 2002

lore
Share & tools
lore

walt

author
#0 lore raw

This is a general linux question, not really a kernel question. Does anyone know if there is a "simple" good way to print code from linux at the command promt. On a Solaris machine, /usr/openwin/bin/mp -o -l filename
gives me a page with 2 columuns, user_name, date, and pagenumber at the top of each column, and the filename at the bottom of each column. I've read lots of howtos and man pages, even wrote a perl script to wrap the lines for me, but I haven't figured out how to get the same format from Linux as I do from Solaris.

Thanks!

--
Walter Anthony
System Administrator
National Electronic Attachment
"If it's not broke....tweak it"

#1 lore raw

Hello Walt , man a2ps . Give that a try or if not found give the net a search on it . Hth , JimL

Quoted 20 lines · walt

This is a general linux question, not really a kernel question. Does anyone know if there is a "simple" good way to print code from linux at the command promt. On a Solaris machine, /usr/openwin/bin/mp -o -l filename
gives me a page with 2 columuns, user_name, date, and pagenumber at the top of each column, and the filename at the bottom of each column. I've read lots of howtos and man pages, even wrote a perl script to wrap the lines for me, but I haven't figured out how to get the same format from Linux as I do from Solaris.

Thanks!

--
Walter Anthony
System Administrator
National Electronic Attachment
"If it's not broke....tweak it"

Quoted 6 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

       +------------------------------------------------------------------+
       | James   W.   Laferriere | System    Techniques | Give me VMS     |
       | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
       | [email protected] | Coudersport PA 16915 |   only  on  AXP |
       +------------------------------------------------------------------+
#2 lore raw
In reply to walt
Quoted 11 lines · walt

This is a general linux question, not really a kernel question. Does anyone know if there is a "simple" good way to print code from linux at the command promt. On a Solaris machine, /usr/openwin/bin/mp -o -l filename
gives me a page with 2 columuns, user_name, date, and pagenumber at the top of each column, and the filename at the bottom of each column. I've read lots of howtos and man pages, even wrote a perl script to wrap the lines for me, but I haven't figured out how to get the same format from Linux as I do from Solaris.

Thanks!

I think you want pr although some formatting isn't automatic. man pr shows it takes more parameters than ls. Fortunately, you can make an alias.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

Windows-2000/Professional isn't.