Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '"this': 0.03; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; 'csv': 0.16; 'skip:g 120': 0.16; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'lines': 0.31; "skip:' 10": 0.31; 'file:': 0.31; 'received:google.com': 0.35; 'two': 0.37; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'reply': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=y8npy4nC7ER5m+B7CMmZCynuitfHwfZOYVtNW69FnPM=; b=W4Lka4JFwiBDdmKSjY5b5w4kY+FEDiNyuvb4uOPAYH12wRY1qfxXmkqX1zZlnATxbS LacrvCt6hb8h6L18Xd2UEEkJg4UHryE3/aFSdwhEpIvHqxu5VEkRfXiimGgnzfIWg+Bv NOvhiILr/aHm7AxqScos1altneCAjhxm/CNXu6oWoTH1jLsJujsAaIi+c+puwd/vrbLI 8B/Ixoxr7GKtVSfzDSa2ituiDQLWbqHAneIU7Hdmtmsx7ESZ6c2QsBMc5dc3IF06h4BZ 8zDT05lLuX48+HiQvt7bHV0m1Vl11I7ghBSVl97Uf2sxYMrNHq4j55zhUf7qEn5bXhZt E77A== MIME-Version: 1.0 X-Received: by 10.50.56.11 with SMTP id w11mr1014383igp.50.1369453764781; Fri, 24 May 2013 20:49:24 -0700 (PDT) In-Reply-To: References: <52c74908-8bac-498e-9549-5b9500b152f1@googlegroups.com> Date: Fri, 24 May 2013 21:49:24 -0600 Subject: Re: suppress newlines in my script From: Jason Friedman To: sloan949@gmail.com Content-Type: text/plain; charset=UTF-8 Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369453767 news.xs4all.nl 15885 [2001:888:2000:d::a6]:45761 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45953 > Here are two lines from the CSV file: > ,,172.20.{0}.0/27,172.20.{0}.32/27,172.20.{0}.64/27,29,172.20.{0}.96/27,,,,172.21.{0}.0/27,172.21.{0}.32/27,172.21.{0}.64/27,29,172.21.{0}.96/27 > GW:,,172.20.{0}.1,172.20.{0}.33,172.20.{0}.65,,172.20.{0}.97,,GW:,,172.21.{0}.1,172.21.{0}.33,172.21.{0}.65,,172.21.{0}.97 > > This is the output: > ,,,,,,,,,,,,,, > > ,,,,,,,,,,,,,, > GW:,,172.20.126.129,172.20.126.161,172.20.126.193,,172.20.126.225,,GW:,,172.21.126.129,172.21.126.161,172.21.126.193,,172.21.126.225 > > '''''''''''''''''' When you say "this is the output" do you mean that is what you are getting or that is what you want? If that is what you are getting please reply with what you want for output.