The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
rename multiple files antointoronto Shell Programming and Scripting 13 03-20-2008 07:16 AM
How to rename multiple files with a common suffix er_ashu UNIX for Dummies Questions & Answers 1 09-28-2007 07:52 AM
Rename part of multiple files sajjad02 Shell Programming and Scripting 4 02-22-2005 10:30 AM
Rename multiple files luiz_fer10 UNIX for Dummies Questions & Answers 7 06-11-2002 05:06 AM
Rename Multiple Files molonede UNIX for Dummies Questions & Answers 1 11-14-2000 09:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-11-2008
Registered User
 

Join Date: May 2008
Posts: 43
now to rename multiple files

I have several hundred files in one directory which I need to move to another directory with the new extension, for example:
/bb/data/rptmgr* are in the source directory need to be moved to
/bb/data55/rptmgr*.new
Is there an efficient way to do it? Thanks -A
Reply With Quote
Forum Sponsor
  #2  
Old 06-11-2008
Registered User
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 100
Quote:
Originally Posted by aoussenko View Post
I have several hundred files in one directory which I need to move to another directory with the new extension, for example:
/bb/data/rptmgr* are in the source directory need to be moved to
/bb/data55/rptmgr*.new
Is there an efficient way to do it? Thanks -A
Code:
cd /bb/data
for f in rptmgr* ; do
   mv $f /bb/data55/$f.new
done
...efficient enough?
Reply With Quote
  #3  
Old 06-11-2008
Registered User
 

Join Date: Jun 2008
Posts: 3
How to create 'New Posts'?

I am new user. How to create 'New Posts'?
Reply With Quote
  #4  
Old 06-11-2008
Registered User
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 100
Could you be more specific?
Reply With Quote
  #5  
Old 06-11-2008
Registered User
 

Join Date: May 2008
Posts: 43
Thanks, this is what I need
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0