![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Hello, everyone! :]
I'm having an issue with my camera/uploading to Photobucket. When my camera transfers it's photos to my hard drive, it transfers them as .JPG. Unfortunately, when I go to upload to my Photobucket account, it only accepts .jpg & .jpeg files. Every time I want to upload, I have to go through the swath and rename them as .jpg files. This is terribly inconvenient and time consuming, and I was wondering if anyone has heard of a program, or has a terminal command that would change them automatically. Alternatively, if someone knows how to add .JPG to my list of used picture formats alongside .jpg & .jpeg, that would be just as usefull, if not more usefull. Note: I run Ubuntu 8.04 and I don't use F-spot, as that program is garbage. Thanks in advance! - Spidydude |
|
|||
|
Problematic
andrew@andrew-desktop:~/Desktop$ for i in *.JPG ; do NAME=${i%%.*}; mv $i $NAME.jpg ; done
mv: target `snowflake.jpg' is not a directory mv: target `F40.jpg' is not a directory mv: target `black.jpg' is not a directory |
|
|||
|
for i in *.JPG; do mv ${i} `echo ${i} | sed 's/JPG/jpg/'`; done
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| camera, file extention |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing filename extension | Hiso | Shell Programming and Scripting | 3 | 01-24-2009 09:02 AM |
| Changing the extension of the file | mazhar803 | UNIX for Dummies Questions & Answers | 4 | 08-29-2008 10:20 AM |
| How to get file extension | shirleyeow | Shell Programming and Scripting | 17 | 01-17-2008 08:40 AM |
| Changing extension | mohan705 | Shell Programming and Scripting | 4 | 06-30-2007 02:06 PM |
| Lynx - Downloading - extension handling - changing mime type? | yitzle | UNIX for Dummies Questions & Answers | 2 | 10-18-2006 12:46 AM |