Re: [Tutor] New to Python..Need help

2014-09-04 Thread Felisha Lawrence
These are all the files. No two filenames are the same swp.1120630020111.KLWX.0.0.5_PPI_v2 swp.1120630020143.KLWX.0.0.9_PPI_v3 swp.1120630020215.KLWX.0.1.3_PPI_v4 swp.1120630020247.KLWX.0.1.8_PPI_v5 swp.1120630020302.KLWX.0.2.4_PPI_v6 swp.1120630020316.KLWX.0.3.1_PPI_v7 swp.1120630020330.KLWX.0.

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Cameron Simpson
On 04Sep2014 15:01, Joel Goldstick wrote: On Thu, Sep 4, 2014 at 8:49 AM, Felisha Lawrence wrote: I have a question regarding strings in python. I have a directory on my MacBook Bro of about 13 files. I need to alter the file endings in that directory. The files are on the order of 'swp.113006

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Danny Yoo
On Thu, Sep 4, 2014 at 12:05 PM, taserian wrote: > Is there anything different between the filenames aside from that suffix > _vXX? If not, then you'll run into problems after the first filename is > changed; further attempts won't allow the change, since there's already a > file with that same na

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Danny Yoo
> I have a question regarding strings in python. I have a directory on my > MacBook Bro of about 13 files. I need to alter the file endings in that > directory. The files are on the order of > 'swp.113006004000_KLWX_0.0.5_PPI_v2','swp.113006004000_KLWX_0.0.5_PPI_v3'. I > need to remove the characte

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Alan Gauld
On 04/09/14 13:49, Felisha Lawrence wrote: 'swp.113006004000_KLWX_0.0.5_PPI_v2','swp.113006004000_KLWX_0.0.5_PPI_v3'. I need to remove the characters after the 'v' and replace with v20. All of the endings of the files are sequential _v2, _v3,_v4, _v5. I need all of these characters to be the sam

Re: [Tutor] New to Python..Need help

2014-09-04 Thread taserian
Is there anything different between the filenames aside from that suffix _vXX? If not, then you'll run into problems after the first filename is changed; further attempts won't allow the change, since there's already a file with that same name. AR On Thu, Sep 4, 2014 at 8:49 AM, Felisha Lawrence

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Joel Goldstick
On Thu, Sep 4, 2014 at 8:49 AM, Felisha Lawrence wrote: > Hello, > I have a question regarding strings in python. I have a directory on my > MacBook Bro of about 13 files. I need to alter the file endings in that > directory. The files are on the order of > 'swp.113006004000_KLWX_0.0.5_PPI_v2','sw

[Tutor] New to Python..Need help

2014-09-04 Thread Felisha Lawrence
Hello, I have a question regarding strings in python. I have a directory on my MacBook Bro of about 13 files. I need to alter the file endings in that directory. The files are on the order of 'swp.113006004000_KLWX_0.0.5_PPI_v2','swp.113006004000_KLWX_0.0.5_PPI_v3'. I need to remove the characters