Posts: 4,647
Threads: 1,494
Joined: Sep 2016
are the file names just numbers like "12345678" or do they partly have numbers like "data2018"?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Sep-10-2018, 07:59 PM
(This post was last modified: Sep-10-2018, 08:00 PM by Skaperen.)
so you need to make a mass rename. yeah that obviously needs a loop. you could write a script to do it. you could do it in Python, but in a shell script might be easier if you know shell scripting. you could do it in Python as a learning exercise. me, personally, i'd do it in a command (in bash) in that directory like:
(ls -1|while read f;do mv $f ${f}1;done)
if you want the "1" to be before the "." it will be a slightly longer command. but maybe it is better for you to do this as a Python script. write something that outputs the commands to do it and when it makes all the right commands then pipe them into a shell.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.