<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Renaming multiple files. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085031#M49295</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;How about a single while loop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;make a file list, call it list&lt;BR /&gt;&lt;BR /&gt;while read -r filename&lt;BR /&gt;do&lt;BR /&gt;  mv $filename $filenamenew&lt;BR /&gt;done &amp;lt; list&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Wed, 19 Dec 2007 15:53:14 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-12-19T15:53:14Z</dc:date>
    <item>
      <title>Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085030#M49294</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've about 1000 files named abc-100.200.def, abc-100.300.def, and so on...&lt;BR /&gt;&lt;BR /&gt;I'd like them called abc-100200.def, abc-100300.def, etc instead. (The first "." deleted)&lt;BR /&gt;&lt;BR /&gt;Do you know a nice way of doing this by one (or two) commands instead of 1000... ?&lt;BR /&gt;&lt;BR /&gt;  /Joakim</description>
      <pubDate>Wed, 19 Dec 2007 15:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085030#M49294</guid>
      <dc:creator>Joakim Brosten</dc:creator>
      <dc:date>2007-12-19T15:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085031#M49295</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;How about a single while loop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;make a file list, call it list&lt;BR /&gt;&lt;BR /&gt;while read -r filename&lt;BR /&gt;do&lt;BR /&gt;  mv $filename $filenamenew&lt;BR /&gt;done &amp;lt; list&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 19 Dec 2007 15:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085031#M49295</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-12-19T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085032#M49296</link>
      <description>Do you have any commands in your mind? You could put those commands into a script &amp;amp; execute the script.&lt;BR /&gt;&lt;BR /&gt;Better still, you can also get a prepared script (utility) to do the job for you. krename is one of them.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.novell.com/products/linuxpackages/suselinux/krename.html" target="_blank"&gt;http://www.novell.com/products/linuxpackages/suselinux/krename.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Wed, 19 Dec 2007 16:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085032#M49296</guid>
      <dc:creator>~sesh</dc:creator>
      <dc:date>2007-12-19T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085033#M49297</link>
      <description>for FILE in `ls abc*`&lt;BR /&gt;do&lt;BR /&gt;NEWNAME=`echo $FILE|awk -F "." '{ print $1$2"."$3}'&lt;BR /&gt;mv $FILE $NEWNAME&lt;BR /&gt;done</description>
      <pubDate>Wed, 19 Dec 2007 17:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085033#M49297</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-12-19T17:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085034#M49298</link>
      <description>&lt;!--!*#--&gt;Well, this is the bash way:&lt;BR /&gt;&lt;BR /&gt;for FILE in *.*.def&lt;BR /&gt;do&lt;BR /&gt;  mv $FILE ${FILE/\./}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This uses bash's inbuilt parameter expansion stuff.  This one does a replace on the first regex match.  It matches the first '.', and replaces it with ''.</description>
      <pubDate>Wed, 19 Dec 2007 21:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085034#M49298</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-12-19T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085035#M49299</link>
      <description>Thank you guys, this was what I was looking for.  I also which you all a Merry Christmas and a Happy New Year.&lt;BR /&gt;&lt;BR /&gt;From Sweden in white snow,  /Joakim</description>
      <pubDate>Thu, 20 Dec 2007 09:59:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085035#M49299</guid>
      <dc:creator>Joakim Brosten</dc:creator>
      <dc:date>2007-12-20T09:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple files.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085036#M49300</link>
      <description>Perfect! Just what I was looking for.</description>
      <pubDate>Thu, 20 Dec 2007 10:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renaming-multiple-files/m-p/5085036#M49300</guid>
      <dc:creator>Joakim Brosten</dc:creator>
      <dc:date>2007-12-20T10:01:39Z</dc:date>
    </item>
  </channel>
</rss>

