snipt

Ctrl+h for KB shortcuts

Bash

show files not added to perforce

find . -type f -print0 | xargs -0 p4 fstat 2>&1 | grep " - no such file(s).$" | grep -v .DS_Store | grep -v /target/
https://snipt.net/embed/278342e35f6bc38d23076f4e280be01c/
/raw/278342e35f6bc38d23076f4e280be01c/
278342e35f6bc38d23076f4e280be01c
bash
Bash
1
2019-08-16T06:46:29
True
False
False
/api/public/snipt/1884/
show-files-not-added-to-perforce
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>find . -type f -print0 <span class="p">|</span> xargs -0 p4 fstat 2&gt;<span class="p">&amp;</span><span class="m">1</span> <span class="p">|</span> grep <span class="s2">&quot; - no such file(s).</span>$<span class="s2">&quot;</span> <span class="p">|</span> grep -v .DS_Store <span class="p">|</span> grep -v /target/ </span></pre></div> </td></tr></table>
osx, perforce