Re: Filename case
On Fri, 20 Sep 1996, John Roesch wrote:
>
> I'm using Debian .96 and have a need to change all the files in a
> directory from uppercase to lowercase (ftp'ed from DOS). Is there a
> quick method or command to do this?
Have you the "python" package installed?
Cd's where the files are and execute this script:
------------------------cut here--------------------
#!/usr/bin/python
import os
import string
for fname in os.listdir(os.curdir):
newfname = string.lower(fname)
os.rename(fname, newfname)
------------------------cut here--------------------
> Thanks,
> John Roesch
Bye, Ezio **** Escape the Gates of Hells, use Linux! ***
Ezio Manini fidonet: 2:334/708.6 internet: manini@piw.it
******* Nihil est tam contrarium rationi quam fortuna *******
Reply to: