Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6801 > unrolled thread

how to avoid leading white spaces

Started byrakesh kumar <rakeshkumar.techie@gmail.com>
First post2011-06-01 13:01 +0530
Last post2011-06-01 13:01 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  how to avoid leading white spaces rakesh kumar <rakeshkumar.techie@gmail.com> - 2011-06-01 13:01 +0530

#6801 — how to avoid leading white spaces

Fromrakesh kumar <rakeshkumar.techie@gmail.com>
Date2011-06-01 13:01 +0530
Subjecthow to avoid leading white spaces
Message-ID<mailman.2369.1306947243.9059.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi

i have a file which contains data

//ACCDJ         EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
//         UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCDJ       '
//ACCT          EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
//         UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCT        '
//ACCUM         EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
//         UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCUM       '
//ACCUM1        EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
//         UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCUM1      '

i want to cut the white spaces which are in between single quotes after
TABLE=.

for example :
                               'ACCT[spaces] '
                               'ACCUM           '
                               'ACCUM1         '
the above is the output of another python script but its having a leading
spaces.

any help is much appreciate.





-- 

Thanks and  regards
@@ Be An Innovator @@
Rakesh Kumar A
+917428243738
[image: cid:image001.jpg@01CA6F8E.95C07E20]

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web