[ale] Bash scripting and printf

Bob Kruger bkruger at mindspring.com
Tue Sep 15 12:11:06 EDT 1998


At 11:04 AM 9/15/98 -0400, you wrote:
>Bob Kruger <bkruger at mindspring.com> writes:
>
>> At 12:38 PM 9/14/98 -0400, you wrote:
>> 
>> >are you familiar with C?
>> >its format is similar to C's printf.
>> 
>> Not really.  However, I have worked with Perl a good bit.
>
>	man 3 printf


Been there.  It was about as easy to comprehend as a book on Euclidian
Geometry, and about as simple as well... ;-).

I think I found the problem -

I was using the following context:

$ printf "Number of lines received:  %20s $lr \n\n "


What I had to go to was this:

$ printf "Number of lines received:  "
$ printf "%20s" "%lr"
$ printf "\n\n"

It makes it a little complicated, but it does work...

Bob






More information about the Ale mailing list