rename command worked (everything is still here :)) ) . Thanks Daniel
On Wed, Feb 27, 2008 at 4:30 PM, Daniel Iliev <[EMAIL PROTECTED]> wrote: > On Wed, 27 Feb 2008 16:12:41 +0100 > "Amar Cosic" <[EMAIL PROTECTED]> wrote: > > > Hello > > > > I have issue where I have something.TXT something.PDF and I need to > > rename them to something.txt something.pdf (so with lower cases) . Is > > there any easy way to do this (command,script? ) > > > > Thanks > > > > > > Use at your own risk. Make a backup before try. > > 1) > rename ".PDF" ".pdf" *.PDF > rename ".TXT" ".txt" *.TXT > > > 2) > find . -iname "*.pdf" -o -iname "*.txt" | while read -r oldname > do > newname=$(echo "${fname}" | tr [[:upper:]] [[:lower:]]) > mv "${oldname}" "${newname}" > done > > > > > -- > Best regards, > Daniel > -- > gentoo-user@lists.gentoo.org mailing list > > -- Amar Ćosić [EMAIL PROTECTED] [EMAIL PROTECTED] +38761240095 http://www.amar.co.ba