Re: Output n equal signs from a script



On Thu, 17 Jun 2010 07:59:31 -0500, Ed Morton <mortonspam@xxxxxxxxx>
wrote:

$ printf "%020s\n" | tr '0' '='
====================

...nor do I know why I thought "0" was a better char for replacement than " ":

$ printf "%20s\n" | tr ' ' '='
====================

Both produce a string of blanks. In the first example, you would need a
%d format specifier to get leading zeros.


--
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php

.



Relevant Pages