<?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: error with script to change file name in directory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920145#M46015</link>
    <description>Hi LHradowy ,&lt;BR /&gt;&lt;BR /&gt;Try with ls or ls -1  [ ls -l will give long listing and give error]&lt;BR /&gt;and then u can rename all with adding 0208 . &lt;BR /&gt;&lt;BR /&gt;Hope this will make it simple.&lt;BR /&gt;Cheers ,&lt;BR /&gt;Raj.</description>
    <pubDate>Tue, 23 Aug 2005 08:42:14 GMT</pubDate>
    <dc:creator>Raj D.</dc:creator>
    <dc:date>2005-08-23T08:42:14Z</dc:date>
    <item>
      <title>error with script to change file name in directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920142#M46012</link>
      <description>I can get each part to work but when I put it all together I get an error.&lt;BR /&gt;ls -l|while read file&lt;BR /&gt;do  newname=`echo $file|sed -e "s/02-Aug/0208/g"`&lt;BR /&gt;mv "$file" "$newname"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Error I get:&lt;BR /&gt;Try `mv --help' for more information.</description>
      <pubDate>Mon, 22 Aug 2005 23:02:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920142#M46012</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-08-22T23:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: error with script to change file name in directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920143#M46013</link>
      <description>&lt;BR /&gt;your problem is 'ls -l|while read file' &lt;BR /&gt;&lt;BR /&gt;as you know ls -l will do long list of the file (including permission, user name, group name owned, size etc). mv does not recognize all these and require only file name. &lt;BR /&gt;&lt;BR /&gt;so, to solve use 'ls -1|while read file' &lt;BR /&gt;&lt;BR /&gt;the option to use is number one.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Tue, 23 Aug 2005 00:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920143#M46013</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-08-23T00:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: error with script to change file name in directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920144#M46014</link>
      <description>Hi,&lt;BR /&gt;Change your mv script line such as:&lt;BR /&gt;&lt;BR /&gt;mv $file $newname</description>
      <pubDate>Tue, 23 Aug 2005 00:05:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920144#M46014</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-08-23T00:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: error with script to change file name in directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920145#M46015</link>
      <description>Hi LHradowy ,&lt;BR /&gt;&lt;BR /&gt;Try with ls or ls -1  [ ls -l will give long listing and give error]&lt;BR /&gt;and then u can rename all with adding 0208 . &lt;BR /&gt;&lt;BR /&gt;Hope this will make it simple.&lt;BR /&gt;Cheers ,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 23 Aug 2005 08:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920145#M46015</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-08-23T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: error with script to change file name in directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920146#M46016</link>
      <description>Did not know ls -1 works!</description>
      <pubDate>Tue, 23 Aug 2005 15:30:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-with-script-to-change-file-name-in-directory/m-p/4920146#M46016</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-08-23T15:30:21Z</dc:date>
    </item>
  </channel>
</rss>

