feat: add sd
parent
cd2d9dcf26
commit
c96aff4809
|
@ -135,6 +135,11 @@
|
|||
>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<a href="https://github.com/chmln/sd">https://github.com/chmln/sd</a>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<a href="https://github.com/adrianlopezroche/fdupes"
|
||||
|
|
|
@ -319,6 +319,22 @@ git gc</pre>
|
|||
<div class="highlight highlight-source-shell">
|
||||
<pre>fd -H <span class="pl-s"><span class="pl-pds">'</span>^\.DS_Store$<span class="pl-pds">'</span></span> -tf -X rm</pre>
|
||||
</div>
|
||||
<h2>
|
||||
<a
|
||||
id="user-content-sd"
|
||||
class="anchor"
|
||||
aria-hidden="true"
|
||||
tabindex="-1"
|
||||
href="#sd"
|
||||
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||
><a href="https://github.com/chmln/sd">sd</a>
|
||||
</h2>
|
||||
<p>Remove proto options:</p>
|
||||
<div class="highlight highlight-source-shell">
|
||||
<pre>sd -F <span class="pl-s"><span class="pl-pds">'</span>import "validate/validate.proto";<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> api/raw/<span class="pl-k">*</span>.proto
|
||||
sd -F <span class="pl-s"><span class="pl-pds">'</span>import "marshal-zap.proto";<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> api/raw/<span class="pl-k">*</span>.proto
|
||||
sd -f s <span class="pl-s"><span class="pl-pds">'</span>\s\[.*?];<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span> api/raw/<span class="pl-k">*</span>.proto</pre>
|
||||
</div>
|
||||
<h2>
|
||||
<a
|
||||
id="user-content-fdupes"
|
||||
|
|
|
@ -18,6 +18,7 @@ This just a raw list.
|
|||
- https://github.com/dandavison/delta
|
||||
- https://github.com/Wilfred/difftastic
|
||||
- https://github.com/eza-community/eza
|
||||
- https://github.com/chmln/sd
|
||||
|
||||
- https://github.com/adrianlopezroche/fdupes
|
||||
- https://github.com/WayneD/rsync
|
||||
|
|
|
@ -253,6 +253,16 @@ With [fd](https://github.com/sharkdp/fd):
|
|||
fd -H '^\.DS_Store$' -tf -X rm
|
||||
```
|
||||
|
||||
## [sd](https://github.com/chmln/sd)
|
||||
|
||||
Remove proto options:
|
||||
|
||||
```sh
|
||||
sd -F 'import "validate/validate.proto";' '' api/raw/*.proto
|
||||
sd -F 'import "marshal-zap.proto";' '' api/raw/*.proto
|
||||
sd -f s '\s\[.*?];' ';' api/raw/*.proto
|
||||
```
|
||||
|
||||
## [fdupes](https://github.com/adrianlopezroche/fdupes)
|
||||
|
||||
Remove duplicated files:
|
||||
|
|
Loading…
Reference in New Issue