Talk About Network



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 > filling left si...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 2175 of 2236
Post > Topic >>

filling left side of string

by happytoday <ehabaziz2001@[EMAIL PROTECTED] > Mar 2, 2008 at 08:39 AM

I am accepting a value entered from batch file using set /p command. I
need to add spaces to the left of the number entered inside an awk
script

nawk -v number=%number% -f test.awk test.dat


What function used to fill the left side of the number with spaces to
complete 7 characters as fixed length of any nymber entered.
Thanks




 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 Wed May 14 13:01:27 CDT 2008.