Re: Output n equal signs from a script
- From: John Kelly <jak@xxxxxxxxxxxx>
- Date: Thu, 17 Jun 2010 13:53:31 +0000
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
.
- Follow-Ups:
- Re: Output n equal signs from a script
- From: Ed Morton
- Re: Output n equal signs from a script
- References:
- Output n equal signs from a script
- From: Marc Muehlfeld
- Output n equal signs from a script
- Prev by Date: Re: Output n equal signs from a script
- Next by Date: Re: Output n equal signs from a script
- Previous by thread: Re: Output n equal signs from a script
- Next by thread: Re: Output n equal signs from a script
- Index(es):
Relevant Pages
|