Todd Slater wrote:

The last script I sent was garbage. This is much cleaner and more
efficient.

As it currently stands, calling the script with "-n yourname" names
pictures "yourname-001.jpg, yourname-002.jpg" etc.

Calling it with "-d" names pictures "YYYY-MM-DD-001.jpg" etc.

Calling it with "-n yourname -d" names pictures "yournameYYMMDD-001.jpg"
etc.

(When naming pictures by date, I like to have year as YYYY, but I can
see how you wouldn't want that if tacking it on to some other text
description.)

Todd


Very many thanks Todd for your renamer script.

First let me appologise for the late reply to your message, this has been entirely due to other commitments that have unexpectedly diverted my attention and as bash scripting is a rank novice status for me I cannot learn these things quickly and need to give it my undivided time and attention.Anyway, this is as far as I have got so far,
==============================================================================================
Renamer Readme
==============================================================================================
Install renamer.sh in a directory where it can be found, eg /usr/local/bin


1) cd directory .jpg (in a terminal).

2) renamer.sh -n <name of renamed prefix>

3) All image files renamed with new prefix name in place of disc


example one =========== [EMAIL PROTECTED] root]# cd /root/Desktop/Directory3 [EMAIL PROTECTED] Directory3]# ls dsci0001.jpg* dsci0007.jpg* dsci0016.jpg* dsci0021.jpg* dsci0027.jpg* dsci0002.jpg* dsci0008.jpg* dsci0017.jpg* dsci0022.jpg* dsci0028.jpg* dsci0003.jpg* dsci0012-2.jpg dsci0018.jpg* dsci0023.jpg* dsci0005.jpg* dsci0012.jpg* dsci0019.jpg* dsci0024.jpg* dsci0006.jpg* dsci0015.jpg* dsci0020.jpg* dsci0025.jpg*

[EMAIL PROTECTED] Directory3]# renamer.sh -n holiday
[EMAIL PROTECTED] Directory3]# ls
holiday-001.jpg*  holiday-007.jpg*  holiday-013.jpg*  holiday-019.jpg*
holiday-002.jpg*  holiday-008.jpg   holiday-014.jpg*  holiday-020.jpg*
holiday-003.jpg*  holiday-009.jpg*  holiday-015.jpg*  holiday-021.jpg*
holiday-004.jpg*  holiday-010.jpg*  holiday-016.jpg*  holiday-022.jpg*
holiday-005.jpg*  holiday-011.jpg*  holiday-017.jpg*
holiday-006.jpg*  holiday-012.jpg*  holiday-018.jpg*
[EMAIL PROTECTED] Directory3]#


this does just about all I really need of it as I can add a date in the name, so that the above might be hol040903-<image number>


But I cannot quite understand how you do it your way, with the flag -d
do I add it something like renamer.sh -n hol -d 08042003

John


--
John Richard Smith
[EMAIL PROTECTED]




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to