Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!rchattam From: rchattam@isis.cs.du.edu (King Chattam) Newsgroups: comp.unix.shell Subject: adjusting string var to fixed length Message-ID: <1991Jun3.181447.12656@mnemosyne.cs.du.edu> Date: 3 Jun 91 18:14:47 GMT Sender: usenet@mnemosyne.cs.du.edu (netnews admin account) Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.) Lines: 9 Disclaimer1: Nyx is a public access Unix system run by the University of Disclaimer2: Denver for the Denver community. The University has neither Disclaimer3: control over nor responsibility for the opinions of users. 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@nyx.cs.du.edu Thanks