Bash Printing, how to -


wrote script in bash. im need bring information text file,for example in postscript, there 1 problem. need have length of string in characters, , stretch or shrink string on entire width of page layout. have tried a2ps , enscript, there no such option. please tell me solution problem, maybe in ghostscript. how change letter spacing fill lines? in advance!

for example:

input

aaa bbbb ccccccc 

output

a   b b b b ccccccc 

sed -e 's/./& /g' -e 's/$/\\p/' < inputfile | groff -tascii 

use groff adjustment, groff adjust words, use sed first make each character word. can use groff output postscript instead if want different fonts or nicer printing or whatever.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -