answersLogoWhite

0


Best Answer

for i in *.c
do
mv $i $i.old
done

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a shell script rename all files whose names end with .c as .old?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Without renaming each file individually how do you can the file name of all files in a folder?

To rename a group of files or folders in WinXP, open the explorer folder that contains the files and do the following: (be careful not to include any critical windows system files or folders when applying this technique. back up with system restore first if you're not sure. also, it only makes sense to apply it to files of the same type.) 1. Highlight the files and/or folders to be renamed (remember to hold down the CTRL key to select non-adjacent files); or hold CTRL-A to select all the files and folders in a given folder 2. Let the mouse hover over the file that you wish to be the first in the series 3. Hit the F2 key or Right-click and select "Rename" 4. Type in the new name for the batch of files you've selected (don't forget to type in the extension if needed, for example .mp3 or .jpg) 5. Hit the Enter key to change the names. The files will remain highlighted and should have sequential names like "rename (1).txt" and "rename (2).txt". If you're not satisfied, simply hit F2 or select "rename" again and do it over.


How do you make a batch file that copies files into a usb?

You do this: @echo off title You are hacked by a script kiddie copy "Location to copy files into here" "Location of the USB drive and what the file's names are" exit


What is the name 'Audrey' when translated from English to Japanese?

names do not change when translated, so you would write, in katakana script, a-o-du-ri


What is the name 'Coryna' when translated from English to Japanese?

names do not change when translated, so you would write, katakana script, ko-ri-na.


What is the name 'Gracie' when translated from English to Japanese?

names do not change when translated, so you would write katakana script, gu-re-shi-i-


What is the name 'Cecil' when translated from English to Japanese?

as names do not change when translated, you would simply write in katakana script, se-shi-ru


What is the name Daniela when translated from English to Japanese?

as names do not change, you would write in katakana script, da-ni-e-ra


What is the name 'Gabriel' when translated from English to Japanese?

names do not change when transated. you would write, in katakana script, ge-bu-ri-e-ru


What is television script called And are there different names for scripts for for example a script for a series a drama and a game show?

Every script is called a script. Regardless of the genre, the script is still called the script.


What are the character's names in Nothing To Lose?

In a script, where are the character names listed?


Where are the characters' names listed in a script?

the names of the players are listed on the title page. that is (depending on the size of the play) the 1-5 page.


Is there a way to populate a database with another website's products without having to copy and paste the name of each product into the database?

If you have access to the other website's database you can just make a query there and write a script that then updates your own database with the received values.If you don't, writing a script would most likely be more work than doing it by yourself. You could maybe save some time by getting a list of the product names and then write a script that seperates the names and then writes the values into your database.