<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>batch renaming files already on Ranch</title>
  <link rel="alternate" href="https://conferences.xsede.org/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>batch renaming files already on Ranch</subtitle>
  <entry>
    <title>batch renaming files already on Ranch</title>
    <link rel="alternate" href="https://conferences.xsede.org/c/message_boards/find_message?p_l_id=&amp;messageId=1086194" />
    <author>
      <name>Mary Katherine Clapp</name>
    </author>
    <id>https://conferences.xsede.org/c/message_boards/find_message?p_l_id=&amp;messageId=1086194</id>
    <updated>2015-11-03T20:27:05Z</updated>
    <published>2015-11-03T20:27:05Z</published>
    <summary type="html">Hi all,&lt;br /&gt;&lt;br /&gt;I have several directories of files already on Ranch archival storage that I need to batch-rename in order to run them efficiently through some code. Some of my files have spaces in them, and others have information in the incorrect order for processing.&lt;br /&gt;&lt;br /&gt;A couple of examples: I would like to rename the directory (and all the files therein) &amp;#039;CENTER1 20150825&amp;#039; to &amp;#039;CENTER1_20150825&amp;#039;, and the directory (and contents) &amp;#039;20150606 EALA-01&amp;#039; to EASTLA1_20150606&amp;#039;.&lt;br /&gt;&lt;br /&gt;Can I batch rename using ssh from my terminal? Do I need to stage all the files in order to rename them and then archive them all again? We&amp;#039;re talking ~8TB of data, so staging and re-uploading would NOT be a trivial process.&lt;br /&gt;&lt;br /&gt;I suppose I could also just wait until I actually pull them out of Ranch into Stampede for my actual computing, and rename them then. But if there is a simple way to rename that doesn&amp;#039;t involve re-uploading them all, it&amp;#039;d be nice to take care of it en masse.&lt;br /&gt;&lt;br /&gt;I am fairly new to the unix shell, so I may need more annotation than the average XSEDE user to understand the process.&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>Mary Katherine Clapp</dc:creator>
    <dc:date>2015-11-03T20:27:05Z</dc:date>
  </entry>
</feed>

