All of you have sent to me your scripts (thank you) but I was looking for a unix command.
It seems that there is not such thing as:
command *.jpg 1.jpg

Michael Moore wrote:

> I've got that script too, but I couldn't think of an expression to
> do s/"bunch of files"/"numerical ordered files"/g


The script doesn't just do regex, it does *any* valid Perl
expression.
What he's asking for won't (AFAIK) work with a plain regex, which
is why, in my previous reply, I included this expression:

'{my $old = $_; $old =~ s/.jpg//; my $new = $old - 1502; s/$old/$new/;}'


Ah, I understand. I didn't understand what that line did, so I guess I
ignored it.

Thanks,


--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to