adjusting string var to fixed length

King Chattam rchattam at isis.cs.du.edu
Tue Jun 4 04:14:47 AEST 1991


Netters,
  I have a shell var (length 0 to 10), which I want always to be output
to a file as fixed length 10. I tried sed, awk etc to adjust the string
length to 10, but did not work.

  Could someone please tell me how blanks can be appended to string vars
to make it fixed length?
rchattam at nyx.cs.du.edu
Thanks



More information about the Comp.unix.shell mailing list