LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2006, 11:34 PM   #1
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
rename file extensions


okay.
i've googled and searched this site... I kinda think i've found some (very complicated) solutions to what I wanna do.

I am writing this 'cause i think there HAS to be a simple CLI way to do the following:

rename a buch of files that have .JPG instead of .jpg file extensions. Simple

Here's the thing: the files are distributed amongst very many subdirs. I want a global command like: find -name '*.JPG' exec blah,blah....

Im no good at coding, and don't want to become a nerd. Can someone help?

Danimalz
 
Old 05-15-2006, 12:04 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
Im no good at coding, and don't want to become a nerd.
You lazy little shit, if you're using linux you already are bro. Deal with it.
Code:
for fn in `find . -name '*.JPG'`; do mv $fn `echo $fn | tr '[[:upper:]]' '[[:lower:]]'`; done
 
Old 05-15-2006, 12:37 AM   #3
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Original Poster
Rep: Reputation: 36
thanks asshole.
 
Old 05-15-2006, 01:06 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
(nevermind)
 
Old 05-15-2006, 02:30 PM   #5
ferentix
Member
 
Registered: Mar 2006
Distribution: Debian Etch (Still setting it up)
Posts: 32

Rep: Reputation: 15
Yeah, 222 posts- very new

In any case, if you really are new- welcome

Last edited by ferentix; 05-15-2006 at 02:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file extensions?? zaid Linux - General 4 01-17-2006 10:28 PM
Need help with File Extensions Linux nooB 454 Linux - Newbie 3 04-10-2005 05:41 PM
File Extensions!!! rejeK Linux - Software 5 12-20-2004 07:30 PM
File Extensions RpgActioN Slackware 1 09-22-2004 10:20 PM
How do I rename a file? Thaidog Linux - Newbie 5 10-10-2003 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration