Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Convert c file to csv file(unix format) in python Date: Tue, 19 May 2015 19:36:34 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 15 Message-ID: References: NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1432064194 13776 67.130.15.94 (19 May 2015 19:36:34 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 19 May 2015 19:36:34 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:90890 On 2015-05-19, umasrinath88@gmail.com wrote: > I have a python script file which converts .hex file to c file. > > Can anyone help me in converting .c file to csv file (unix format). ------------------------------------------------------------------------ #import os,sys os.rename(sys.argv[1],sys.argv[1].replace('.c','.csv')) ------------------------------------------------------------------------ -- Grant Edwards grant.b.edwards Yow! I want a WESSON OIL at lease!! gmail.com