in reply to Re: Counter && print issue
in thread Counter && print issue

Thx for your input..i`ve tried what you said and now it gets like this :
WAA[Ok] Longname.......[Ok] Onotherlognname...[Ok] Smalln[Ok]
And I wanted to look like :
WAA [Ok] Longname....... [Ok] Onotherlognname... [Ok] Smalln [Ok]

Replies are listed 'Best First'.
Re^3: Counter && print issue
by sgifford (Prior) on Oct 08, 2005 at 16:09 UTC
    Use a negative field width to get it left-aligned (yes, it's non-intuitive, but printf has been that way for a long time):
    printf "-26s %4s\n","WAA","[Ok]";