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 > removing leadin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2058 of 2297
Post > Topic >>

removing leading character from left,right a string

by happytoday <ehabaziz2001@[EMAIL PROTECTED] > Nov 4, 2007 at 01:18 PM

Hello,
I need to remove a space on the right and left of a string
name =3D "                                            =F4         "
    #line 5
   for (ix1=3D1;ix1<2;ix1++) getline ;
   name=3Dsubstr($0,0,52)
   name1=3Dgsub(/^ *| *$/, "",name)

In dos editor the space equal that character according to the font
used :  " " That is my code above but useless .
 




 2 Posts in Topic:
removing leading character from left,right a string
happytoday <ehabaziz20  2007-11-04 13:18:24 
Re: removing leading character from left,right a string
Ed Morton <morton@[EMA  2007-11-04 17:33:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Jul 6 20:44:13 CDT 2008.