This commit is contained in:
sylvestre
2023-05-09 02:44:48 +00:00
parent f5b5427f29
commit 73a3b12058
4 changed files with 138 additions and 104 deletions
+119 -102
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+17
View File
@@ -227,6 +227,23 @@ from any other non-alphabet bytes in the encoded stream.</p>
<dd>
</dd>
</dl>
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
<p>Encode a file with base64 encoding:</p>
<pre><code class="language-shell">basenc --base64 {{path/to/file}}
</code></pre>
<p>Decode a file with base64 encoding:</p>
<pre><code class="language-shell">basenc --decode --base64 {{path/to/file}}
</code></pre>
<p>Encode from <code>stdin</code> with base32 encoding with 42 columns:</p>
<pre><code class="language-shell">{{command}} | basenc --base32 -w42
</code></pre>
<p>Encode from <code>stdin</code> with base32 encoding:</p>
<pre><code class="language-shell">{{command}} | basenc --base32
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
</main>