Redian新闻
>
Print out Line Number using lp ???
avatar
Print out Line Number using lp ???# Unix - 噫吁兮,危乎高哉
z*g
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
avatar
h*a
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

avatar
B*z
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.

avatar
B*z
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。