↧
Answer by Avinash Raj for multiple file rename based on modification date
Through python, script.py import os import shutil directory = sys.argv[1] count = '0' for item in os.listdir(directory): count = str(int(count)+1) newname = re.sub(r'.*', count+'.txt', item)...
View ArticleAnswer by CAB for multiple file rename based on modification date
Having done something like this before, I can assure you it's easy to make a typo that will give you an even larger problem that you already have. Use this information at your own risk. At bash prompt;...
View Articlemultiple file rename based on modification date
I have looked on the web on multiple sites but I can't seem to find a solution and the man page is not clear (I'm a beginner with the CLI). This is my problem: I have about 200 files in a directory,...
View Article