shellscript

From: roN (NOspam_at_example.com)
Date: 09/27/05


Date: Tue, 27 Sep 2005 04:45:30 +0200

Hi,

I got a Directory full of Pictures named like this:
Pic1-01-02-05.jpg
Pic1-02-02-05.jpg
Pic1-03-02-05.jpg
Pic2-01-02-05.jpg
Pic2-02-02-05.jpg
Pic2-03-02-05.jpg
And I would like to sort them. But really don't know how. It should be
sorted lik this:
Pic1-01-02-05.jpg
Pic2-01-02-05.jpg
Pic1-02-02-05.jpg
Pic2-02-02-05.jpg
Pic1-03-02-05.jpg
Pic2-03-02-05.jpg
how do I do so? for sure the filenames can be changed so the files will be
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
after, that's no problem. Would that be possible with some kind of
shellscript? Can anyhone help me create one?
Thank you very much!

-- 
chEErs roN
I'm root, I'm allowed to do this! ;)
keep on rockin'


Relevant Pages

  • Re: shellscript
    ... >And I would like to sort them. ... >sorted lik this: ... this DO NOT DO THIS AS ROOT. ... DaveC ...
    (alt.os.linux.suse)
  • on behalf of Tonys only ridiculous sake
    ... There, go let a root! ... Gawd Ibrahim will ... unless Ziad yells substitutes worth Abduljalil's ... affections put sort of charming ...
    (sci.crypt)
  • Re: ok, its confirmed - Bangalore is building a Test team
    ... a sort of desultory thing. ... But an active interest where you root for your team, ... So what if a few guys who used to play for the city team in some obscure tournament earlier aren't with us anymore. ... If they really cared for Bombay, destiny would have ensured that they were picked up by Bombay :-) ...
    (rec.sport.cricket)
  • Re: named wont start on 5.1
    ... but omitting it reveals that named is about the last thing ... Must be some sort of chroot problem, ... no errors but it runs as root, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: named wont start on 5.1
    ... bob prohaska wrote: ... and the start fails with some sort of syntax error: ... >Must be some sort of chroot problem, ... >no errors but it runs as root, ...
    (comp.unix.bsd.freebsd.misc)