<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: mmv &#8212; move multiple files by wildcard patterns</title>
	<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/</link>
	<description>Diary of my Linux journeys. Everything Linux by Kamil Wójcicki</description>
	<pubDate>Thu, 09 Feb 2012 22:39:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Crawl Space Guru</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1575</link>
		<author>Crawl Space Guru</author>
		<pubDate>Sun, 06 Nov 2011 02:52:09 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1575</guid>
		<description>&lt;strong&gt;Crawl Space Guru...&lt;/strong&gt;

[...]Linux Blog &#187; mmv &#8212; move multiple files by wildcard patterns[...]...</description>
		<content:encoded><![CDATA[<p><strong>Crawl Space Guru&#8230;</strong></p>
<p>[&#8230;]Linux Blog &raquo; mmv &mdash; move multiple files by wildcard patterns[&#8230;]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ge spacemaker microwave</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1568</link>
		<author>ge spacemaker microwave</author>
		<pubDate>Fri, 04 Nov 2011 11:31:32 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1568</guid>
		<description>&lt;strong&gt;ge spacemaker microwave...&lt;/strong&gt;

[...]Linux Blog &#187; mmv &#8212; move multiple files by wildcard patterns[...]...</description>
		<content:encoded><![CDATA[<p><strong>ge spacemaker microwave&#8230;</strong></p>
<p>[&#8230;]Linux Blog &raquo; mmv &mdash; move multiple files by wildcard patterns[&#8230;]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1491</link>
		<author>Bill</author>
		<pubDate>Wed, 13 Apr 2011 15:48:10 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1491</guid>
		<description>Thank you! Your bash 1 liner does the trick as I dont have mmv in cygwin by default. Woot!</description>
		<content:encoded><![CDATA[<p>Thank you! Your bash 1 liner does the trick as I dont have mmv in cygwin by default. Woot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goodsoul</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1439</link>
		<author>goodsoul</author>
		<pubDate>Tue, 16 Nov 2010 02:20:45 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-1439</guid>
		<description>try also:
rename 's/.abc$/.123$/' *.abc</description>
		<content:encoded><![CDATA[<p>try also:<br />
rename &#039;s/.abc$/.123$/&#039; *.abc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Working script, Would like someone to look at for me - The UNIX and Linux Forums</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-678</link>
		<author>Working script, Would like someone to look at for me - The UNIX and Linux Forums</author>
		<pubDate>Sun, 07 Feb 2010 11:50:48 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-678</guid>
		<description>[...] can get it from any other repo I have had a hard time finding just a source package for it though.  Linux Blog mmv &#38;mdash; move multiple files by wildcard patterns   [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] can get it from any other repo I have had a hard time finding just a source package for it though.  Linux Blog mmv &amp;mdash; move multiple files by wildcard patterns   [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamil</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-191</link>
		<author>Kamil</author>
		<pubDate>Mon, 25 Feb 2008 17:55:44 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-191</guid>
		<description>Hi Konrad, 

Thank you for your comment with useful information. I have made the suggested changes. 

Cheers,
Kamil</description>
		<content:encoded><![CDATA[<p>Hi Konrad, </p>
<p>Thank you for your comment with useful information. I have made the suggested changes. </p>
<p>Cheers,<br />
Kamil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dfi</title>
		<link>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-190</link>
		<author>dfi</author>
		<pubDate>Mon, 25 Feb 2008 17:26:27 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/mmv-copy-append-link-move-multiple-files-under-linux-shell-bash-by-wildcard-patterns-p5/#comment-190</guid>
		<description>for i in *.abc; do mv $i `echo $i&#124;sed 's/.abc$/.123$/'`; done
can be done in bash with:
for i in *.abc; do mv "$i" "${i/.abc/.123}"; done

If you omit the " (as you do in your expression) you will not treat filenames with spaces correctly, furthermore the regex is incorrect . is a wildcard in your expression - it should be escaped vie \.

Cheers,
Konrad</description>
		<content:encoded><![CDATA[<p>for i in *.abc; do mv $i `echo $i|sed &#039;s/.abc$/.123$/&#039;`; done<br />
can be done in bash with:<br />
for i in *.abc; do mv &#034;$i&#034; &#034;${i/.abc/.123}&#034;; done</p>
<p>If you omit the &#034; (as you do in your expression) you will not treat filenames with spaces correctly, furthermore the regex is incorrect . is a wildcard in your expression - it should be escaped vie \.</p>
<p>Cheers,<br />
Konrad</p>
]]></content:encoded>
	</item>
</channel>
</rss>

