Hello Brian,

Wednesday, September 4, 2002, 3:59:19 PM, you textually orated:

BL> I am trying to rename a bunch of files with extension .inc to .php in one
BL> fell-swoop.  Is there a set of commands I can pipe to each other to do this
BL> like:
 
BL> ls *.inc | xargs ....
 
BL> or do I need to do a for loop. 
 
BL> I read up a little on xargs and on using the ` operator for passing the
BL> output to other programs but I am a little mixed up right now trying to
BL> grasp xargs, sed, awk, and more.
 
BL> Thanks in advance.

man rename

It is a simple utility (not necessarily the best one though) to do just as
you wish.

In your case...
rename .inc .php *.inc

Have fun,
-- 
_________________________________________________________________
 Brian Ashe                     CTO
 [EMAIL PROTECTED]              Dee-Web Software Services, LLC.
 http://www.dee-web.com/
-----------------------------------------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to