<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Howto: Linux Rename Multiple Files At a Shell Prompt</title>
	<atom:link href="http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html</link>
	<description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description>
	<lastBuildDate>Sun, 21 Mar 2010 08:21:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sheeep</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-154376</link>
		<dc:creator>sheeep</dc:creator>
		<pubDate>Fri, 19 Mar 2010 14:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-154376</guid>
		<description>thx!</description>
		<content:encoded><![CDATA[<p>thx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wonky</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-150478</link>
		<dc:creator>Wonky</dc:creator>
		<pubDate>Wed, 02 Sep 2009 21:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-150478</guid>
		<description>what if i have a load of files named differently(all .jpg) and i want to rename them into a sequence caleld for example ( test001.jpg test002.jpg and so on )? cheers</description>
		<content:encoded><![CDATA[<p>what if i have a load of files named differently(all .jpg) and i want to rename them into a sequence caleld for example ( test001.jpg test002.jpg and so on )? cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pd</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149851</link>
		<dc:creator>pd</dc:creator>
		<pubDate>Tue, 04 Aug 2009 00:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149851</guid>
		<description>I want to rename files and folder like:
test .txt-----&gt;test.txt
text1 .xls----&gt; text1.xls
&quot;folder1 &quot; ----&gt;&gt;folder1
&quot;folder2 &quot;-----&gt;&gt;fodler2
Actually there are some files and folders in windows which has blank space at the end of file and folder name.
Basically I want to remove blank space at the end of each file and folder.But there are some different extension files as well.</description>
		<content:encoded><![CDATA[<p>I want to rename files and folder like:<br />
test .txt&#8212;&#8211;&gt;test.txt<br />
text1 .xls&#8212;-&gt; text1.xls<br />
&#8220;folder1 &#8221; &#8212;-&gt;&gt;folder1<br />
&#8220;folder2 &#8220;&#8212;&#8211;&gt;&gt;fodler2<br />
Actually there are some files and folders in windows which has blank space at the end of file and folder name.<br />
Basically I want to remove blank space at the end of each file and folder.But there are some different extension files as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimmyNY</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149756</link>
		<dc:creator>JimmyNY</dc:creator>
		<pubDate>Thu, 30 Jul 2009 06:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149756</guid>
		<description>Nobody has ever asked this question online it seems…

Problem: Stupid MAC (which I dont have anymore named files with these characters:
“:”
“?”
etc.. in the file names.. I could not find any file renamer that would rename these files in Windows/DOS..

So I tried FENDORA linux and I can rename the manually one by one but i have hundreds…

HELP!!!!

No RENAME or mv command works.. I trired everything i can find online..

I tried specifing the “:” like this “\:” “\x3a” etc.. and nothing.

does anyone know how to strip these retardted OS-illegal characters out of the names.. in one shot.?

I know the ren command in DOS.. but I have no clue it seems in Linux.
and no i don’t have a mac or access to one..

Thanks ahead of time, for your help.</description>
		<content:encoded><![CDATA[<p>Nobody has ever asked this question online it seems…</p>
<p>Problem: Stupid MAC (which I dont have anymore named files with these characters:<br />
“:”<br />
“?”<br />
etc.. in the file names.. I could not find any file renamer that would rename these files in Windows/DOS..</p>
<p>So I tried FENDORA linux and I can rename the manually one by one but i have hundreds…</p>
<p>HELP!!!!</p>
<p>No RENAME or mv command works.. I trired everything i can find online..</p>
<p>I tried specifing the “:” like this “\:” “\x3a” etc.. and nothing.</p>
<p>does anyone know how to strip these retardted OS-illegal characters out of the names.. in one shot.?</p>
<p>I know the ren command in DOS.. but I have no clue it seems in Linux.<br />
and no i don’t have a mac or access to one..</p>
<p>Thanks ahead of time, for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pir</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149671</link>
		<dc:creator>pir</dc:creator>
		<pubDate>Fri, 24 Jul 2009 13:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149671</guid>
		<description>rename &#039;s/konstantin/georg/&#039; konstantin.bcn*</description>
		<content:encoded><![CDATA[<p>rename &#8217;s/konstantin/georg/&#8217; konstantin.bcn*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: konstantin</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149597</link>
		<dc:creator>konstantin</dc:creator>
		<pubDate>Mon, 20 Jul 2009 15:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149597</guid>
		<description>hello does somebody knows how to rename the following??

from:

konstantin.bcn
konstantin.bcn0
konstantin.bcn1
konstantin.bcn2

to

georg.bcn
georg.bcn0
georg.bcn1
georg.bcn2

thanks a lot in advance!!

konstantin</description>
		<content:encoded><![CDATA[<p>hello does somebody knows how to rename the following??</p>
<p>from:</p>
<p>konstantin.bcn<br />
konstantin.bcn0<br />
konstantin.bcn1<br />
konstantin.bcn2</p>
<p>to</p>
<p>georg.bcn<br />
georg.bcn0<br />
georg.bcn1<br />
georg.bcn2</p>
<p>thanks a lot in advance!!</p>
<p>konstantin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miguel</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149555</link>
		<dc:creator>miguel</dc:creator>
		<pubDate>Sat, 18 Jul 2009 11:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149555</guid>
		<description>how can I rename in specified directory only ?
filename.extension? -&gt; filename.extension

(I have downloading script, but after pasting filename in windows codepage all extensions are finished with â��?â�� and windows see filename garbled..)</description>
		<content:encoded><![CDATA[<p>how can I rename in specified directory only ?<br />
filename.extension? -&gt; filename.extension</p>
<p>(I have downloading script, but after pasting filename in windows codepage all extensions are finished with â��?â�� and windows see filename garbled..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miguel</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149554</link>
		<dc:creator>miguel</dc:creator>
		<pubDate>Sat, 18 Jul 2009 11:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149554</guid>
		<description>how can I rename in specified directory only ?
filename.extension? -&gt; filename.extension

(I have downloading script, but after pasting filename in windows codepage all extensions are finished with &quot;?&quot; and windows see filename garbled..)</description>
		<content:encoded><![CDATA[<p>how can I rename in specified directory only ?<br />
filename.extension? -&gt; filename.extension</p>
<p>(I have downloading script, but after pasting filename in windows codepage all extensions are finished with &#8220;?&#8221; and windows see filename garbled..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natan</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149480</link>
		<dc:creator>Natan</dc:creator>
		<pubDate>Tue, 14 Jul 2009 10:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149480</guid>
		<description>so :

for i in *.txt.gz; do mv $i `echo $i &#124;cut -c1-23,30-55` ; done</description>
		<content:encoded><![CDATA[<p>so :</p>
<p>for i in *.txt.gz; do mv $i `echo $i |cut -c1-23,30-55` ; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149279</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 02 Jul 2009 09:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149279</guid>
		<description>abd now his one :

AAAAAAB0020090617173034173034AAAA21_-_0001329515.txt.gz

into

AAAAAAB0020090617173034AAAA21_-_0001329515.txt.gz

anyone?</description>
		<content:encoded><![CDATA[<p>abd now his one :</p>
<p>AAAAAAB0020090617173034173034AAAA21_-_0001329515.txt.gz</p>
<p>into</p>
<p>AAAAAAB0020090617173034AAAA21_-_0001329515.txt.gz</p>
<p>anyone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: b0nUx3R</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149240</link>
		<dc:creator>b0nUx3R</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149240</guid>
		<description>oh yeah,i forgot...

example :
addedit.png;1        filesave.png;1        publish_r.png;1
addusers.png;1       folder_add_f2.png;1   publish_x.png;1
apply_f2.png;1       folder_add.png;1      publish_y.png;1

and want to convert to :
addedit.png        filesave.png        publish_r.png
addusers.png       folder_add_f2.png   publish_x.png
apply_f2.png       folder_add.png      publish_y.png</description>
		<content:encoded><![CDATA[<p>oh yeah,i forgot&#8230;</p>
<p>example :<br />
addedit.png;1        filesave.png;1        publish_r.png;1<br />
addusers.png;1       folder_add_f2.png;1   publish_x.png;1<br />
apply_f2.png;1       folder_add.png;1      publish_y.png;1</p>
<p>and want to convert to :<br />
addedit.png        filesave.png        publish_r.png<br />
addusers.png       folder_add_f2.png   publish_x.png<br />
apply_f2.png       folder_add.png      publish_y.png</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: b0nUx3R</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149239</link>
		<dc:creator>b0nUx3R</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-149239</guid>
		<description>I have a lot of .png file with extension &quot;*.png;1&quot; but I want to rename all in time to &quot;*.png&quot; how to do that?

Thanks :)</description>
		<content:encoded><![CDATA[<p>I have a lot of .png file with extension &#8220;*.png;1&#8243; but I want to rename all in time to &#8220;*.png&#8221; how to do that?</p>
<p>Thanks :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newbie</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148846</link>
		<dc:creator>newbie</dc:creator>
		<pubDate>Fri, 05 Jun 2009 12:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148846</guid>
		<description>how can we rename 100 files in folder 
1 fooo1.txt
2 fooo2.txt
3 fooo3.txt
....

to :-
1fooo1.txt
1fooo2.txt
1fooo3.txt
.......</description>
		<content:encoded><![CDATA[<p>how can we rename 100 files in folder<br />
1 fooo1.txt<br />
2 fooo2.txt<br />
3 fooo3.txt<br />
&#8230;.</p>
<p>to :-<br />
1fooo1.txt<br />
1fooo2.txt<br />
1fooo3.txt<br />
&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148758</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Fri, 29 May 2009 17:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148758</guid>
		<description>It seems to be a Debian vs. other distros issue.  Debian uses prename, perl rename, which it maps to /usr/bin/rename.  I found the source for one version of perl rename online at http://tips.webdesign10.com/files/rename.pl.txt and using that, my regex above works as desired.</description>
		<content:encoded><![CDATA[<p>It seems to be a Debian vs. other distros issue.  Debian uses prename, perl rename, which it maps to /usr/bin/rename.  I found the source for one version of perl rename online at <a href="http://tips.webdesign10.com/files/rename.pl.txt" rel="nofollow">http://tips.webdesign10.com/files/rename.pl.txt</a> and using that, my regex above works as desired.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V.Balaviswanathan</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148447</link>
		<dc:creator>V.Balaviswanathan</dc:creator>
		<pubDate>Tue, 05 May 2009 14:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148447</guid>
		<description>Cool one... Thanks a lot... Good job... Keep this good work going :)</description>
		<content:encoded><![CDATA[<p>Cool one&#8230; Thanks a lot&#8230; Good job&#8230; Keep this good work going :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148385</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Thu, 30 Apr 2009 19:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148385</guid>
		<description>Example file name: 2001DODGE3500546424-10_12_1.JPG
Desired file name: 2001DODGE3500546424-10.jpg

Command: &lt;code&gt;rename &quot;s/(_[0-9]+)+\.JPG/.jpg/&quot; *.JPG&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Example file name: 2001DODGE3500546424-10_12_1.JPG<br />
Desired file name: 2001DODGE3500546424-10.jpg</p>
<p>Command: <code>rename "s/(_[0-9]+)+\.JPG/.jpg/" *.JPG</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek Gite</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148384</link>
		<dc:creator>Vivek Gite</dc:creator>
		<pubDate>Thu, 30 Apr 2009 19:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148384</guid>
		<description>It should work 2.13 was around for sometime and 2.14 is latest. Can paste your example here..</description>
		<content:encoded><![CDATA[<p>It should work 2.13 was around for sometime and 2.14 is latest. Can paste your example here..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148383</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Thu, 30 Apr 2009 18:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-148383</guid>
		<description>My rename doesn&#039;t seem to support regexes.  Fedora 10.  How can I get this version?
# rename -V
rename (util-linux-ng 2.14.1)</description>
		<content:encoded><![CDATA[<p>My rename doesn&#8217;t seem to support regexes.  Fedora 10.  How can I get this version?<br />
# rename -V<br />
rename (util-linux-ng 2.14.1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Feakins</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-147822</link>
		<dc:creator>Paul Feakins</dc:creator>
		<pubDate>Tue, 24 Mar 2009 11:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-147822</guid>
		<description>How about:

rename &#039;s/-*//&#039; *.mp3

Hopefully that should remove everything after the first hyphen. It&#039;s a guess though, try it on a small sample first ;)

Paul.</description>
		<content:encoded><![CDATA[<p>How about:</p>
<p>rename &#8217;s/-*//&#8217; *.mp3</p>
<p>Hopefully that should remove everything after the first hyphen. It&#8217;s a guess though, try it on a small sample first ;)</p>
<p>Paul.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luka</title>
		<link>http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-147802</link>
		<dc:creator>Luka</dc:creator>
		<pubDate>Mon, 23 Mar 2009 14:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#comment-147802</guid>
		<description>Thanks for all the tips. Can you help mi with this specific example? I have files named:

latinum_20080101_0305-200272-93930-2-25.mp3
latinum_20080101_0310-200279-93934-2-25.mp3
latinum_20080101_0315-200671-94112-2-25.mp3

and I want to rename them to get the following:
latinum_20080101_0305.mp3
latinum_20080101_0310.mp3
latinum_20080101_0315.mp3

How can I do that using rename? (I have several hundred of files like that.)</description>
		<content:encoded><![CDATA[<p>Thanks for all the tips. Can you help mi with this specific example? I have files named:</p>
<p>latinum_20080101_0305-200272-93930-2-25.mp3<br />
latinum_20080101_0310-200279-93934-2-25.mp3<br />
latinum_20080101_0315-200671-94112-2-25.mp3</p>
<p>and I want to rename them to get the following:<br />
latinum_20080101_0305.mp3<br />
latinum_20080101_0310.mp3<br />
latinum_20080101_0315.mp3</p>
<p>How can I do that using rename? (I have several hundred of files like that.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.199 seconds -->
