Home  |  Forums  |  914 Info  |  Blogs
 
914World.com - The fastest growing online 914 community!
 
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG. This site is not affiliated with Porsche in any way.
Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners.
 

Welcome Guest ( Log In | Register )

> renaming mass file extensions (HELP), in Debian Linux
bd1308
post Apr 7 2005, 11:38 AM
Post #1


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



I know what i want to do...i have a bizillion .php files i need to get to be .php3 files....so my logic is like this:

rm *.php *.php3

but of course, that dont work.......

please somebody help (IMG:http://www.914world.com/bbs2/html/emoticons/pray.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
tat2dphreak
post Apr 7 2005, 01:43 PM
Post #2


stoya, stoya, stoya
*****

Group: Benefactors
Posts: 8,797
Joined: 6-June 03
From: Wylie, TX
Member No.: 792
Region Association: Southwest Region



QUOTE (Root_Werks @ Apr 7 2005, 02:33 PM)
Whew! Well, since everything is in a temp file, I would try something like this from the directory in which your files reside:

mv -i *.php /home/temp/new_files/*.php3

Then you can:

ls -l /home/temp/new_files/* > /home/temp/new_files/list.txt

ls -l > list1.txt

Compare the two list files to make sure nothing is missing. (IMG:http://www.914world.com/bbs2/html/emoticons/wink.gif)

I don't think that mv will work the way you used it... if so, it doesn't work for me under HP UNIX.. I just set up a test to try it, using a copy of my sql directory and a temp dir under it...

razor:MED:/home/wf6341/temp_sql-> mkdir test
razor:MED:/home/wf6341/temp_sql-> mv -i *.sql ./temp/*.sq1
Usage: mv [-f] [-i] [-e warn|force|ignore] f1 f2
mv [-f] [-i] [-e warn|force|ignore] f1 ... fn d1
mv [-f] [-i] [-e warn|force|ignore] d1 d2
razor:MED:/home/wf6341/temp_sql->
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 8th June 2024 - 08:04 PM