Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!columbia!rutgers!clyde!masscomp!black
From: black@masscomp.UUCP (Sam Black)
Newsgroups: net.sources
Subject: Re: "printf" lookalike from shell-level (for VAXen)
Message-ID: <1332@masscomp.UUCP>
Date: Mon, 12-Jan-87 10:45:30 EST
Article-I.D.: masscomp.1332
Posted: Mon Jan 12 10:45:30 1987
Date-Received: Tue, 13-Jan-87 22:40:30 EST
References: <9@gyre.UUCP>
Reply-To: black@masscomp.UUCP (Sam Black)
Organization: MASSCOMP - Westford, Ma
Lines: 23
Keywords: printf echo format gross

In article <9@gyre.UUCP> fred@gyre.UUCP (Fred Blonder) writes:
>Here's a handy little program which works sort of like echo, except
>that it does formatting in the manner of printf. In fact, it uses
>printf to do its formatting, so you have the full functionality of
>printf available at the shell level.

You can do the same thing with AWK, and it works on all machines
that have AWK.  With C shell, do something like:

	alias printf "echo ' ' | awk '{ printf(\!*) }'"

You can probably define a function in Bourne shell to do the same
thing, too.

----------------------------------------------

	There are only two kinds of planes in the world:
	Fighters and targets.
				- 1Lt. Steven Brown, 63 TFTS

		...!{decvax,allegra,harvard,seismo,unc,ihnp4}!masscomp!black

----------------------------------------------