z**g 发帖数: 3 | 1 anyone know:
How to print a txt file with line number on it ?
and how to set the page setup to "Landscape" or
"Portrait" ??
TX
zorg | h******a 发帖数: 198 | 2 1st qestion:
awk '{print NR,$0}' urfile > newfile
or awk '{printf("%-5d%s\n",NR,$0)}' urfile >newfile (better looking)
or grep -n "" urfile > newfile
2 question:
when you print file, you could setup print configuration.
【在 z**g 的大作中提到】 : anyone know: : How to print a txt file with line number on it ? : and how to set the page setup to "Landscape" or : "Portrait" ?? : TX : zorg
| B**z 发帖数: 153 | 3 1)
easier way
nl urfile |lp
【在 h******a 的大作中提到】 : 1st qestion: : awk '{print NR,$0}' urfile > newfile : or awk '{printf("%-5d%s\n",NR,$0)}' urfile >newfile (better looking) : or grep -n "" urfile > newfile : 2 question: : when you print file, you could setup print configuration.
| B**z 发帖数: 153 | 4 2) didn't find a standard UNIX command for this
try pclf or enscript
if they are installed in your UNIX.
【在 B**z 的大作中提到】 : 1) : easier way : nl urfile |lp
|
|