<p>I want to check out all files in all subdirectories of a specified folder.</p>

<p>(And it is painful to do this using the GUI, because there is no recursive checkout option).</p>

[{'answer_id': 33605, 'author': 'aku', 'author_id': 1196, 'author_profile': 'https://Stackoverflow.com/users/1196', 'pm_score': 3, 'selected': False, 'text': '<pre><code>cleartool find somedir -exec "cleartool checkout -nc \\"%CLEARCASE_PN%\\""\n</code></pre>\n\n<p>Also an article "<a href="http://www.ibm.com/developerworks/rational/library/4687.html" rel="noreferrer">ClearCase: The ten best scripts</a>" might be helpful</p>\n'}, {'answer_id': 119595, 'author': 'VonC', 'author_id': 6309, 'author_profile': 'https://Stackoverflow.com/users/6309', 'pm_score': 6, 'selected': True, 'text': '<p>Beware: ClearCase is File-centric, not repository centric (like SVN or CVS).</p>\n\n<p>That means it is rarely a good solution to checkout all files (and it can be fairly long with ClearCase ;) )</p>\n\n<p>That being said, the question is perfectly legitimate and I would like to point out another way:</p>\n\n<p>open a <code>cleartool</code> session in the \'specified folder\':</p>\n\n<pre><code>c:\\MyFolder&gt; cleartool\ncleartool&gt; co -c "Reason for massive checkout" .../*\n</code></pre>\n\n<p>does the trick too. But as the aku\'s answer, it does checkout <em>everything</em>: files and directories... and you may most <em>not need</em> to checkout directories!  </p>\n\n<pre><code>cleartool find somedir -type f -exec "cleartool checkout -c \\"Reason for massive checkout\\" \\"%CLEARCASE_PN%\\""\n</code></pre>\n\n<p>would only checkout files...</p>\n\n<p>Now the problem is to checkin everything that has changed. It is problematic since often <em>not everything</em> has changed, and CleaCase will trigger an error message when trying to check in  an identical file. Meaning you will need 2 commands:</p>\n\n<pre><code>ct lsco -r -cvi -fmt "ci -nc \\"%n\\"\\n" | ct\nct lsco -r -cvi -fmt "unco -rm %n\\n" | ct\n</code></pre>\n\n<p>(with \'<code>ct</code> being \'<code>cleartool</code>\' : type \'<code>doskey ct=cleartool $*</code>\' on Windows to set that alias)</p>\n\n<p>Note that <code>ct ci -nc</code> will check-in with the comment used for the checkout stage.<br>\nSo it is <em>not</em> a checkin without a comment (like the <code>-nc</code> option -- or "no comment" -- could make believe).</p>\n'}]
['https://Stackoverflow.com/questions/33577', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/814/']