Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2008-08-22 Thread cygwin
Sam Kuper wrote:
> 1) Was the rename utility removed from cygutils at some point between
> version 1.2.6-1 and 1.3.2-1, or is my version of cygutils somehow
> corrupt?
> 2) If it was removed, why, and is there some other way I can obtain
> the rename utility under cygwin? (NB. please don't just suggest I use
> "for i in *; do mv ${i} ${i#foo}; done", etc. - I'm asking
> specifically for the rename *utility*, not a rename capability.)

>From /usr/share/doc/Cygwin/cygutils-1.3.2.README:

--  cygutils-1.3.0-1 -- 2006-03-20 ---
* Remove many programs now offered by the util-linux package
  including: cal col  colcrt  colrm   column  ddate
 getopt  mcookie  namei   rename  rev

--
Chuck

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2008-08-22 Thread Sam Kuper
2008/8/22 Brian Dessent <[EMAIL PROTECTED]>:
> Brian Dessent wrote:
>
>> Everything is in the announcements.  It was moved out of cygutils in
>> 1.3.0 and into util-linux:
>
> And, additionally, next time try:
>
> $ cygcheck -p rename.exe
> Found 3 matches for rename.exe.
> util-linux/util-linux-2.12r-2   Random collection of Linux utilities
> util-linux/util-linux-2.13.1-1  Random collection of Linux utilities
> util-linux/util-linux-2.13.1-2  Random collection of Linux utilities
>
> Brian

Many thanks for the quick and helpful reply, Brian. As you can tell,
I'm still learning my way around cygwin's ML archives and utilities!

Regards,

Sam

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2008-08-22 Thread Brian Dessent
Brian Dessent wrote:

> Everything is in the announcements.  It was moved out of cygutils in
> 1.3.0 and into util-linux:

And, additionally, next time try:

$ cygcheck -p rename.exe
Found 3 matches for rename.exe.
util-linux/util-linux-2.12r-2   Random collection of Linux utilities
util-linux/util-linux-2.13.1-1  Random collection of Linux utilities
util-linux/util-linux-2.13.1-2  Random collection of Linux utilities

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2008-08-22 Thread Brian Dessent
Sam Kuper wrote:

> 1) Was the rename utility removed from cygutils at some point between
> version 1.2.6-1 and 1.3.2-1, or is my version of cygutils somehow
> corrupt?
> 2) If it was removed, why, and is there some other way I can obtain
> the rename utility under cygwin? (NB. please don't just suggest I use
> "for i in *; do mv ${i} ${i#foo}; done", etc. - I'm asking
> specifically for the rename *utility*, not a rename capability.)

Everything is in the announcements.  It was moved out of cygutils in
1.3.0 and into util-linux:




Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2008-08-22 Thread Sam Kuper
s/between version 1.2.6-1 and 1.3.2-1/between version 1.2.7-1 and 1.3.2-1/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2008-08-22 Thread Sam Kuper
Charles Wilson wrote:
>The cygutils package has been updated to 1.2.7. This adds a 'rename'
>utility ...
>
>Changes from version 1.2.6-1
>- rename.exe added (contributed by Christopher Faylor)
>...

Dear all,

I've started using cygwin relatively recently, and I have cygutils
1.3.2-1 installed. This version of cygutils does not appear to include
the rename utility: if, at a cygwin prompt, I type "rename", I receive
the message, "bash: rename: command not found".

My questions are:

1) Was the rename utility removed from cygutils at some point between
version 1.2.6-1 and 1.3.2-1, or is my version of cygutils somehow
corrupt?
2) If it was removed, why, and is there some other way I can obtain
the rename utility under cygwin? (NB. please don't just suggest I use
"for i in *; do mv ${i} ${i#foo}; done", etc. - I'm asking
specifically for the rename *utility*, not a rename capability.)

Many thanks in advance,

Sam

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Jan Nieuwenhuizen
Christopher Faylor writes:

> So, it is no surprise that the rename from util-linux is available un
> FC*, RH7.2, RH9, Gentoo, SuSE, (AFAICT) Mandrake, and (AFAICT)
> Slackware.

Thanks for the information.  I filed a bug-report with Debian's perl
package.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Jim Drash
> rename comes from the util-linux package.
> 
> cgf
> 

cgf you are right.  I just checked a couple of my Linux boxes and
there is a rename in /usr/bin/  I suspect that most old-time UNIX
weenies (myself included) have never used it.  I always used "mv".

WOW, "learn something new everyday" :-P

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Christopher Faylor
On Thu, Apr 14, 2005 at 08:21:01PM +0200, Markus Sch?nhaber wrote:
>Am Donnerstag, 14. April 2005 20:13 schrieb Jan Nieuwenhuizen:
>>Christopher Faylor writes:
>>>Yeah, one of the rpms that I am working on building for my real job
>>>(tm) actually used rename on linux.  It was news to me that this
>>>program even existed.  I usually write some kind of for loop to do
>>>this.
>>
>>Maybe that's because I am not sure at all it does exist on linux
>>
>"on Linux" is vague enough to be fairly meaningless.  Look here:
>http://www.kernel.org/pub/linux/utils/util-linux/ You may have these
>tools installed "on Linux" or not.

I suppose I should know better than to make a simple casual remark.  As
anyone who uses linux knows, the util-linux package is intended to be
included with a linux distribution.  That is why you found it on
kernel.org rather than "my-special-linux-tools.org".

So, it is no surprise that the rename from util-linux is available un
FC*, RH7.2, RH9, Gentoo, SuSE, (AFAICT) Mandrake, and (AFAICT)
Slackware.  And, as has been pointed out, although Debian (and
presumably Ubuntu) use util-linux, the version of rename is a different
package with similar functionality.

I'm sure there must be a minor linux installation out there which
doesn't have a program of that name but that is really not a concern for
this list and really doesn't merit all that much attention here.  If
your version of linux doesn't include 'rename' then find one that does
or build it yourself from scratch.  It certainly isn't hard.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Christopher Faylor
On Thu, Apr 14, 2005 at 08:13:33PM +0200, Jan Nieuwenhuizen wrote:
>Christopher Faylor writes:
>>Yeah, one of the rpms that I am working on building for my real job
>>(tm) actually used rename on linux.  It was news to me that this
>>program even existed.  I usually write some kind of for loop to do
>>this.
>
>Maybe that's because I am not sure at all it does exist on linux

rename comes from the util-linux package.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Andrew Schulman
>$ head -1 /usr/bin/rename
>#!/usr/bin/perl -w

Yes, Debian includes a perl script /usr/bin/rename, which seems more 
powerful than Cygwin rename:

NAME
   rename - renames multiple files

SYNOPSIS
   rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]

DESCRIPTION
   "rename" renames the filenames supplied according to the rule 
   specified as the first argument.  The perlexpr argument is a Perl 
   expression which is expected to modify the $_ string in Perl for 
   at least some of the filenames specified.  If a given filename is 
   not modified by the expression, it will not be renamed.  If no 
   filenames are given on the command line, filenames will be read 
   via standard input.

   For example, to rename all files matching "*.bak" to strip the 
   extension, you might say

   rename 's/\.bak$//' *.bak

   To translate uppercase names to lower, you'd use

   rename 'y/A-Z/a-z/' *

This is a more powerful approach, because it uses Perl regexps.  OTOH, 
that makes it hard for non-Perl initiates to use.

Maybe this rename could also be included in Cygwin under a different 
name, say rename2 or prename.

A.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Markus Schönhaber
Am Donnerstag, 14. April 2005 20:13 schrieb Jan Nieuwenhuizen:
> Christopher Faylor writes:
> > Yeah, one of the rpms that I am working on building for my real job (tm)
> > actually used rename on linux.  It was news to me that this program even
> > existed.  I usually write some kind of for loop to do this.
>
> Maybe that's because I am not sure at all it does exist on linux
>
"on Linux" is vague enough to be fairly meaningless. Look here:
http://www.kernel.org/pub/linux/utils/util-linux/
You may have these tools installed "on Linux" or not.

Regards
  mks

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Jan Nieuwenhuizen
Christopher Faylor writes:

> Yeah, one of the rpms that I am working on building for my real job (tm)
> actually used rename on linux.  It was news to me that this program even
> existed.  I usually write some kind of for loop to do this.

Maybe that's because I am not sure at all it does exist on linux

   $ debfile bin/rename
   usr/bin/rename   perl/perl
   $ rename --help
   Unknown option: h
   Usage: rename [-v] [-n] [-f] perlexpr [filenames]
   $ head -1 /usr/bin/rename
   #!/usr/bin/perl -w

and

   $ cyg-apt find bin/rename
   cygutils: /usr/bin/rename.exe
   $ wine /cygwin/usr/bin/rename.exe --help
   call: rename from to files...
   
Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread Christopher Faylor
On Thu, Apr 14, 2005 at 06:29:53PM +0100, zzapper wrote:
>On Wed, 13 Apr 2005 07:00:50 +0200 (CEST),  wrote:
>>The cygutils package has been updated to 1.2.7.  This adds a 'rename'
>>utility, and fixes some issues with cygstart.
>>
>>o Changes from version 1.2.6-1 - rename.exe added (contributed by
>>Christopher Faylor)
>
>Rename seems rather cute
>
>eg
>
>>rename .htm .html *.htm
>
>will fix the extension of your html files
>
>man rename

Yeah, one of the rpms that I am working on building for my real job (tm)
actually used rename on linux.  It was news to me that this program even
existed.  I usually write some kind of for loop to do this.

Now the challenge will be remembering that this command exists the next time
I need to do something like the above.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.7-1

2005-04-14 Thread zzapper
On Wed, 13 Apr 2005 07:00:50 +0200 (CEST),  wrote:

>The cygutils package has been updated to 1.2.7. This adds a 'rename' 
>utility, and fixes some issues with cygstart.
>
>o Changes from version 1.2.6-1
>- rename.exe added (contributed by Christopher Faylor)

Rename seems rather cute

eg

 >  rename .htm .html *.htm

will fix the extension of your html files

man rename




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/