[PLUG] bash decimal interpretation

Jeme A Brelin jeme at brelin.net
Wed Dec 3 02:54:02 UTC 2003


On Wed, 3 Dec 2003, Chris Jantzen wrote:
> It'll just overflow the width. "5" becomes "05", but "123" becomes
> "123". It does, however, beg the question of "why pad if you don't know
> how wide you want it?"

Well, it's that I want it all the same length.  So I have to figure out
the length of the longest one and pad to that.  -w does this for me.

It's not that I don't know how long I want it, I just don't know yet.

J.
-- 
   -----------------
     Jeme A Brelin
    jeme at brelin.net
   -----------------
 [cc] counter-copyright
 http://www.openlaw.org




More information about the PLUG mailing list