Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: filling lef...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 2175 of 2317
Post > Topic >>

Re: filling left side of string

by Ted Davis <tdavis@[EMAIL PROTECTED] > Mar 3, 2008 at 07:44 AM

On Sun, 02 Mar 2008 22:57:35 -0800, happytoday wrote:

> But I need to use the variable in comparing function not in printing. So
> with the set /p I have only numbers without left leading spaces .
> filenumber variable in file has left spaces. So I need to fill the left
> side of the number with spaces till I reach 7 characters legnth.

RTFM
  if( string == sprintf "%7i", number ) do something

-- 
T.E.D. (tdavis@[EMAIL PROTECTED]
)
 




 5 Posts in Topic:
filling left side of string
happytoday <ehabaziz20  2008-03-02 08:39:46 
Re: filling left side of string
Ted Davis <tdavis@[EMA  2008-03-02 11:22:24 
Re: filling left side of string
happytoday <ehabaziz20  2008-03-02 22:57:35 
Re: filling left side of string
Luuk <Luuk@[EMAIL PROT  2008-03-03 13:30:51 
Re: filling left side of string
Ted Davis <tdavis@[EMA  2008-03-03 07:44:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:14:13 CDT 2008.