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


Groups > comp.lang.python > #6801

how to avoid leading white spaces

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rakeshkumar.techie@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.245
X-Spam-Level **
X-Spam-Evidence '*H*': 0.53; '*S*': 0.02; 'exec': 0.07; 'python': 0.08; 'output': 0.11; 'appreciate.': 0.16; 'rakesh': 0.16; 'received:209.85.220': 0.25; 'script': 0.27; 'example': 0.27; 'message-id:@mail.gmail.com': 0.28; 'thanks': 0.28; 'subject:how': 0.29; '8bit%:47': 0.30; "skip:' 10": 0.32; 'skip:\xa0 30': 0.32; 'to:addr:python-list': 0.33; 'file': 0.34; 'received:google.com': 0.37; 'received:209.85': 0.37; 'another': 0.37; 'but': 0.38; 'data': 0.38; 'received:209': 0.39; 'skip:d 40': 0.39; 'to:addr:python.org': 0.39; 'help': 0.40; 'content- type:multipart/related': 0.64; 'virus:src="cid:': 0.65; 'skip:+ 10': 0.67; 'filename:fname piece:jpg': 0.67; '8bit%:100': 0.68; 'content-type:image/jpeg': 0.69; '[image:': 0.72; 'spaces': 0.73; '8bit%:60': 0.84; 'and\xa0': 0.84; 'email name:cid:image001.jpg': 0.84; 'spaces.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=0CP0TA5rYKSjhe83KpCHt+pobIsqV7oMOjgV6I8MavY=; b=p1YBXK2oPUtkNIxmpQZ9h/2sG2+5iYcUvxfA6TqJGSoaXhvBfwv4kZ3SYCX4snoLu5 kVjAU32BbJ+QR7ZWpTi4uxxp2PANT1cfdON3sGkkJirkIkV25DRedy3WSgaYOj5VlLX2 aEYQJ3WO96kJt/xDkxBSRhm9Gm4ODWQilKXWQ=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RvH9rJktAX0AhJ2kD4iAqAbHv+PIeTUSY32B5WJYH65CunMpBy/Jdn8A2xuITfwBmU 1FGyz296f4tja3Md9tj87w6v+CDZhYTeH2r6N9Cz/e+7vgJaWbxJFYLncy25bYdCNnV4 XQ/3LE/CbDNqpLAgNg2WxEr2Uru3+rmmLzcEs=
MIME-Version 1.0
Date Wed, 1 Jun 2011 13:01:04 +0530
Subject how to avoid leading white spaces
From rakesh kumar <rakeshkumar.techie@gmail.com>
To python-list@python.org
Content-Type multipart/related; boundary=bcaec51a7ad6d47e9804a4a1800e
X-Mailman-Approved-At Wed, 01 Jun 2011 18:54:01 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2369.1306947243.9059.python-list@python.org> (permalink)
Lines 159
NNTP-Posting-Host 82.94.164.166
X-Trace 1306947243 news.xs4all.nl 49041 [::ffff:82.94.164.166]:43743
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6801

Show key headers only | View raw


[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]

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web