[vox-tech] Padding Variables in bash

Henry House vox-tech@lists.lugod.org
Sat, 12 Apr 2003 19:56:12 -0700


--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 12, 2003 at 07:51:38PM -0700, Ken Herron wrote:
[snip: aligning text in columns]
> >Is there something similar in bash?
>=20
> I dunno...pipe them into awk so you can use printf? :-)

There is a 'printf' included in the GNU utilities for use in scripts. Use
'man 3 printf' or 'man sprintf' to find out about the formatting codes.

--=20
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/p=
gp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

--8t9RHnE3ZwKMSgU+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+mNHLi3lu92AVGcIRAsSEAJ9YMIAznlTBD5I4t5kCJ/BxEQ0RNgCZAfL5
LmDUwSMMYOr1M+ooVNm+ECQ=
=9v/M
-----END PGP SIGNATURE-----

--8t9RHnE3ZwKMSgU+--