<?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 Files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659838#M48007</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;# mv /tmp/me /tmp/me.`date +%d_%m_%Y`&lt;BR /&gt;&lt;BR /&gt;Remember to avoid the usual "/" in the date since this would constitute additional directory levels.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 06 Feb 2002 15:40:11 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-02-06T15:40:11Z</dc:date>
    <item>
      <title>Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659833#M48002</link>
      <description>I am trying to write a small script that periodically renames a file and appends the date to the end of the new file name. For example, I want to rename 'file' to 'file.06/02/2002'. Unfortunatly I can not get this to work. If anyone could help me out I would be really greatfull.&lt;BR /&gt;&lt;BR /&gt;thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Christian Briddon</description>
      <pubDate>Wed, 06 Feb 2002 15:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659833#M48002</guid>
      <dc:creator>Christian Briddon</dc:creator>
      <dc:date>2002-02-06T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659834#M48003</link>
      <description>Try using this command in your script:&lt;BR /&gt;&lt;BR /&gt;mv filename filename.`date +%d%m%y`&lt;BR /&gt;&lt;BR /&gt;Note that the ` marks are the backwards tick marks.</description>
      <pubDate>Wed, 06 Feb 2002 15:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659834#M48003</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-06T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659835#M48004</link>
      <description>Hi Christain,&lt;BR /&gt;&lt;BR /&gt;If you man the date command, it will guide you through exactly what you need. However, are you sure that you want file.06/02/2002 rather than something like file.06-02-2002. You method will create a subdirectory, is that what you want?&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2002 15:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659835#M48004</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-06T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659836#M48005</link>
      <description>Hi,&lt;BR /&gt;It should work except the for logfiles etc...&lt;BR /&gt;In such case why not copy the file, append the date and zeroe your file:&lt;BR /&gt;cp -p file file.&lt;WHATEVER&gt;;&lt;BR /&gt;date&amp;gt;&amp;gt;file.&lt;WHATEVER&gt;;&lt;BR /&gt;&amp;gt;file&lt;BR /&gt;&lt;BR /&gt;No garanty, just thoughts...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor&lt;BR /&gt;&lt;/WHATEVER&gt;&lt;/WHATEVER&gt;</description>
      <pubDate>Wed, 06 Feb 2002 15:39:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659836#M48005</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2002-02-06T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659837#M48006</link>
      <description>&lt;BR /&gt;# mv file file.$(date +%d%m%y)</description>
      <pubDate>Wed, 06 Feb 2002 15:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659837#M48006</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-02-06T15:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659838#M48007</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;# mv /tmp/me /tmp/me.`date +%d_%m_%Y`&lt;BR /&gt;&lt;BR /&gt;Remember to avoid the usual "/" in the date since this would constitute additional directory levels.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 06 Feb 2002 15:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659838#M48007</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-02-06T15:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659839#M48008</link>
      <description>Hi Cristian,&lt;BR /&gt;&lt;BR /&gt;As Patrick tell you, you can do:&lt;BR /&gt;mv filename filename.`date +%d%m%y` &lt;BR /&gt; and then echo `date` &amp;gt;&amp;gt; filename.`date +%d%m%y`&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 06 Feb 2002 15:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659839#M48008</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-06T15:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659840#M48009</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As everybody already said&lt;BR /&gt;&lt;BR /&gt;no / it is not possible.&lt;BR /&gt;&lt;BR /&gt;You can even add time in the date incase you need to rename more than once a day.&lt;BR /&gt;&lt;BR /&gt;cp file file..$(date '+%d-%m-%y_%H:%M:%S')&lt;BR /&gt;&lt;BR /&gt;Shame. But choose another character in the date.&lt;BR /&gt;&lt;BR /&gt;       Steve Steel</description>
      <pubDate>Wed, 06 Feb 2002 15:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659840#M48009</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-06T15:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659841#M48010</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Personally, I prefer &lt;BR /&gt;&lt;BR /&gt;# mv logfile logfile.`date +%Y%m%d`&lt;BR /&gt;&lt;BR /&gt;This makes sorting the logfiles in chronological order much easier.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Wed, 06 Feb 2002 16:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659841#M48010</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-06T16:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659842#M48011</link>
      <description>Thanks for all your help. I have assigned points to you all.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Christian</description>
      <pubDate>Wed, 06 Feb 2002 16:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659842#M48011</guid>
      <dc:creator>Christian Briddon</dc:creator>
      <dc:date>2002-02-06T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659843#M48012</link>
      <description>Hi Christian,&lt;BR /&gt;&lt;BR /&gt;the solution for your problem is very easy:&lt;BR /&gt;&lt;BR /&gt;mv oldname oldname.`date +%d.%m.%y`&lt;BR /&gt;&lt;BR /&gt;It is better to use dots as separators than slashes because these could be interpreted as pathes. You can use each character as seperator but allways be careful with special characters for the reason the shell could interpret them!&lt;BR /&gt;&lt;BR /&gt;I hope this will help you, best regards&lt;BR /&gt;&lt;BR /&gt;Peter Kloetgen</description>
      <pubDate>Thu, 07 Feb 2002 07:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/2659843#M48012</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-07T07:15:33Z</dc:date>
    </item>
  </channel>
</rss>

