<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.redbrick.dcu.ie/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Goldfish</id>
	<title>Redbrick Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.redbrick.dcu.ie/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Goldfish"/>
	<link rel="alternate" type="text/html" href="https://wiki.redbrick.dcu.ie/Special:Contributions/Goldfish"/>
	<updated>2026-04-30T19:42:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://wiki.redbrick.dcu.ie/index.php?title=Mass_Renaming_Files&amp;diff=5372</id>
		<title>Mass Renaming Files</title>
		<link rel="alternate" type="text/html" href="https://wiki.redbrick.dcu.ie/index.php?title=Mass_Renaming_Files&amp;diff=5372"/>
		<updated>2006-03-25T13:09:09Z</updated>

		<summary type="html">&lt;p&gt;Goldfish: /* In the Bash shell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mass Renaming Files ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Mass renaming of files can vary depending on what platform and system you&#039;re on. If you&#039;re on Unix, and more specifically Unix, the following techniques should be available to you.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using RedBrick then both &#039;&#039;&#039;mmv&#039;&#039;&#039; and &#039;&#039;&#039;rename&#039;&#039;&#039; are available to you.&lt;br /&gt;
&lt;br /&gt;
In this scenario, we are going to try and rename all .php files in the current directory so they have a .gif extension&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039; always backup your files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using mmv ===&lt;br /&gt;
&lt;br /&gt;
 mmv &#039;*.php&#039; &#039;#1.gif&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using rename ===&lt;br /&gt;
 &lt;br /&gt;
 rename &#039;s/\.php$/.gif/&#039; *.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== In the Bash shell ===&lt;br /&gt;
for file in *.php; do mv &amp;quot;$file&amp;quot; &amp;quot;${file%.php}.gif&amp;quot;; done&lt;/div&gt;</summary>
		<author><name>Goldfish</name></author>
	</entry>
</feed>