in reply to Re: Using printf
in thread Using printf
And if you want to print out a nice troff formatted version of a man page (looks great on most printers), you can use the nifty -t switch:
man -t printf | lpr
(You need troff installed, but that should be there on any *nix-like OS worth having =)
perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'
|
|---|