Quantcast
Channel: multiple file rename based on modification date - Ask Ubuntu
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


multiple 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>