Thursday, July 24, 2014

Re: [LINUX_Newbies] Re: Rename Photos?

 

On Thu, Jul 24, 2014 at 07:09:17AM -0700, jpwalker@fastmail.fm [LINUX_Newbies] wrote:
> I have several different sets of photos that all have them same numbers. I would like to rename them as- 1- 100A, or 1-100B for example. How can I do this from the command line?

Assuming you have them in a directory called photos, while in that
directory

First test it.

for i in *.jpg;do echo mv "$i" "${i%%.jpg}" A.jpg;done

This will show you what it would do. For example,in a directory that has
two pictures, 1.jpg and 2.jpg I ran the command and get

for i in *.jpg; do echo mv "$i" "${i%%.jpg}"A.jpg;done
mv 1.jpg 1A.jpg
mv 2.jpg 2A.jpg

Once you've tested it by using echo you can now it for real.

for i in *.jpg;do mv "$i" "${i%%.jpg}" A.jpg;done

In this case, what we're doing is what's called a for loop, (because it
uses the word for, as opposed to a while loop). for i in *.jpg means for a
a variable, which we're callling i, in a group, in this case, any file
ending with .jpg, move, (in this case, that means rename) the file. The
${i%% means that we're going to get rid of whatever comes after the %%, in
this case, .jpg, then outside of the bracket, put in a letter A and put the
.jpg back. There are other ways and scripts, but that is one of the
simpler methods, IMHO.

--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

__._,_.___

Posted by: Scott <scottro@nyc.rr.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

[LINUX_Newbies] Re: Rename Photos?

 

I have several different sets of photos that all have them same numbers. I would like to rename them as- 1- 100A, or 1-100B for example. How can I do this from the command line?

__._,_.___

Posted by: jpwalker@fastmail.fm
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] Rename Photos?

 

Actually, it is very easy in windows. Just select multiple files and right click. Click rename. I just have not found an easy way to do it in Ubuntu.

__._,_.___

Posted by: jpwalker@fastmail.fm
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] Rename Photos?

 

This can be done from the commandline using the rename command or there are several graphical tools such as pyrenamer and krename that will do the same thing without typing long command strings. Many photo viewers such as Ubuntu's viewer because they are made to view and edit one photo at a time. Some more complex ones have this built in. Faststone for Windows will also work through Wine. Picasa can do this, but they dropped their Linux version some time ago. I think it will work in Wine, though have not tried it.

There is also XNConvert which is a  free tool for Linux but I have never used it. It is not in the repositories.

http://www.xnview.com/en/xnconvert/

Roy


On Wednesday, July 23, 2014 11:31:16 PM, "Joan Leach jleach728@sbcglobal.net [LINUX_Newbies]" <LINUX_Newbies@yahoogroups.com> wrote:


 
As far as I know not even Windows can, but to Linux everything was said to be a file, so how can two or more files be renamed at once? I would try putting them in renamed folders, or maybe there's a copy and rename that I've forgotten about...
Joan in Reno


From: "jpwalker@fastmail.fm [LINUX_Newbies]" <LINUX_Newbies@yahoogroups.com>
To: LINUX_Newbies@yahoogroups.com
Sent: Wednesday, July 23, 2014 7:00 PM
Subject: [LINUX_Newbies] Rename Photos?

 
Can anyone tell me how to rename more than 1 photo at a time when using Ubuntu`s image viewer?





__._,_.___

Posted by: Linux Canuck <linuxcanuck@yahoo.ca>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] Rename Photos?

 

On Wed, Jul 23, 2014 at 08:31:10PM -0700, Joan Leach jleach728@sbcglobal.net [LINUX_Newbies] wrote:
> As far as I know not even Windows can, but to Linux everything was said to be a file, so how can two or more files be renamed at once? I would try putting them in renamed folders, or maybe there's a copy and rename that I've forgotten about...
> Joan in Reno

There are a lot of ways to do it via command line.

There's a rename command for example.

If you have a pattern of how you want to rename them, and post it here,
someone can probably help.

--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

__._,_.___

Posted by: Scott <scottro@nyc.rr.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Wednesday, July 23, 2014

Re: [LINUX_Newbies] Rename Photos?

 

As far as I know not even Windows can, but to Linux everything was said to be a file, so how can two or more files be renamed at once? I would try putting them in renamed folders, or maybe there's a copy and rename that I've forgotten about...
Joan in Reno


From: "jpwalker@fastmail.fm [LINUX_Newbies]" <LINUX_Newbies@yahoogroups.com>
To: LINUX_Newbies@yahoogroups.com
Sent: Wednesday, July 23, 2014 7:00 PM
Subject: [LINUX_Newbies] Rename Photos?

 
Can anyone tell me how to rename more than 1 photo at a time when using Ubuntu`s image viewer?



__._,_.___

Posted by: Joan Leach <jleach728@sbcglobal.net>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

[LINUX_Newbies] Rename Photos?

 

Can anyone tell me how to rename more than 1 photo at a time when using Ubuntu`s image viewer?


__._,_.___

Posted by: jpwalker@fastmail.fm
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Yahoo Groups
Improved Group Homepage!
The About page of your Group now gives you a heads up display of recent activity, including the latest photos and files

Yahoo Groups
Control your view and sort preferences per Yahoo Group
You can now control your default Sort & View Preferences for Conversations, Photos and Files in the membership settings page.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___