script for renaming files

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

script for renaming files

Postby muskrat » Mon Jun 18, 2007 11:59 am

I currently have a bunch of files (approximately 250) in a directory that I need to rename. They currently end in .tar.tar instead of .tar.bz2 which they should. While its possible for me to rename each by hand, I'd rather not if there is a way to do it with a script. The environment is a bash shell under linux.
User avatar
muskrat
 
Posts: 24
Joined: Tue Jan 31, 2006 6:51 pm
Location: Where am I?

Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 78 guests