-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
297 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
--- | ||
layout: page | ||
title: common/less-than (English) | ||
description: "Redirect a file to `stdin`." | ||
content_hash: e986d64436b086b035b97ea8c64b6684c4b34d04 | ||
last_modified_at: 2024-10-02 | ||
description: "Redirect data to `stdin`." | ||
content_hash: 48c706545ccd584cfb5340b9258f4b7878301090 | ||
last_modified_at: 2024-10-12 | ||
tldri18n_status: 2 | ||
--- | ||
# Less than | ||
|
||
Redirect a file to `stdin`. | ||
Achieves the same effect as `cat file.txt |`. | ||
Redirect data to `stdin`. | ||
More information: <https://gnu.org/software/bash/manual/bash.html#Redirecting-Input>. | ||
|
||
- Redirect a file to `stdin`: | ||
- Redirect a file to `stdin` (achieves the same effect as `cat file.txt |`): | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">command</span>` < `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file.txt</span> | ||
|
||
- Create a here document and pass that into `stdin` (requires a multiline command): | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">command</span>` << `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">EOF</span>` <Enter> `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">multiline_data</span>` <Enter> `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">EOF</span> | ||
|
||
- Create a here string and pass that into `stdin`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">command</span>` <<< `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">string</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: page | ||
title: freebsd/base64 (English) | ||
description: "Encode or decode file or `stdin` to/from base64, to `stdout` or another file." | ||
content_hash: 995522066144ac87e3a61b7258c0f0de7f69ddbb | ||
last_modified_at: 2024-10-12 | ||
tldri18n_status: 0 | ||
--- | ||
|
||
### Outdated Translation | ||
This entry is currently considered outdated and its contents may not be up-to-date with other translations. | ||
|
||
Please considering fixing this issue by contributing to the [tldr-pages](https://github.com/tldr-pages/tldr) project directly. | ||
|
||
<a class="btn btn-primary" href="{{ site.url }}/en/freebsd/base64.html">View original (English) version</a> | ||
<a class="btn" href="https://github.com/tldr-pages/tldr/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> | ||
|
||
<hr># base64 | ||
|
||
Encode or decode file or `stdin` to/from base64, to `stdout` or another file. | ||
More information: <https://man.freebsd.org/cgi/man.cgi?query=base64>. | ||
|
||
- Encode a file to `stdout`: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span> | ||
|
||
- Encode a file to the specified output file: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/input_file</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-o|--output</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/output_file</span> | ||
|
||
- Wrap encoded output at a specific width (`0` disables wrapping): | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-b|--break</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">0|76|...</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span> | ||
|
||
- Decode a file to `stdout`: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-d|--decode</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span> | ||
|
||
- Encode from `stdin` to `stdout`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">command</span>` | base64` | ||
|
||
- Decode from `stdin` to `stdout`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">command</span>` | base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-d|--decode</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: page | ||
title: freebsd/base64 (Indonesia) | ||
description: "Lakukan pengodean dan pendekodean terhadap suatu berkas atau `stdin` dari/menuju format Base64, menuju `stdout` atau berkas lainnya." | ||
content_hash: 77d163d3b9005a4b4c99c169f2e643168525f2bb | ||
last_modified_at: 2024-10-12 | ||
tldri18n_status: 0 | ||
--- | ||
|
||
### Outdated Translation | ||
This entry is currently considered outdated and its contents may not be up-to-date with other translations. | ||
|
||
Please considering fixing this issue by contributing to the [tldr-pages](https://github.com/tldr-pages/tldr) project directly. | ||
|
||
<a class="btn btn-primary" href="{{ site.url }}/en/freebsd/base64.html">View original (English) version</a> | ||
<a class="btn" href="https://github.com/tldr-pages/tldr/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> | ||
|
||
<hr># base64 | ||
|
||
Lakukan pengodean dan pendekodean terhadap suatu berkas atau `stdin` dari/menuju format Base64, menuju `stdout` atau berkas lainnya. | ||
Informasi lebih lanjut: <https://man.freebsd.org/cgi/man.cgi?query=base64>. | ||
|
||
- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju `stdout`: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas</span> | ||
|
||
- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju suatu berkas luaran/output: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas_input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-o|--output</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas_output</span> | ||
|
||
- Bungkus luaran Base64 dalam panjang karakter yang tetap (nilai `0` akan menonaktifkan pembungkusan): | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-b|--break</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">0|76|...</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas</span> | ||
|
||
- Dekodekan kode Base64 yang tersimpan dalam suatu berkas, dan keluarkan hasil menuju `stdout`: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-d|--decode</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas</span> | ||
|
||
- Kodekan isi dari `stdin` menuju `stdout`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">perintah</span>` | base64` | ||
|
||
- Dekodekan kode Base64 yang berasal dari `stdin` menuju `stdout`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">perintah</span>` | base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-d|--decode</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
layout: page | ||
title: osx/base64 (Indonesia) | ||
description: "Lakukan pengodean dan pendekodean terhadap suatu berkas atau `stdin` dari/menuju format Base64, menuju `stdout` atau berkas lainnya." | ||
content_hash: 0ec0e5f9d3998162b5cc387af6549d849aab2862 | ||
last_modified_at: 2024-10-12 | ||
related_topics: | ||
- title: English version | ||
url: /en/osx/base64.html | ||
icon: bi bi-globe | ||
- title: español version | ||
url: /es/osx/base64.html | ||
icon: bi bi-globe | ||
- title: हिन्दी version | ||
url: /hi/osx/base64.html | ||
icon: bi bi-globe | ||
- title: italiano version | ||
url: /it/osx/base64.html | ||
icon: bi bi-globe | ||
- title: Nederlands version | ||
url: /nl/osx/base64.html | ||
icon: bi bi-globe | ||
- title: português (Brasil) version | ||
url: /pt_BR/osx/base64.html | ||
icon: bi bi-globe | ||
- title: 中文 version | ||
url: /zh/osx/base64.html | ||
icon: bi bi-globe | ||
tldri18n_status: 0 | ||
--- | ||
|
||
### Outdated Translation | ||
This entry is currently considered outdated and its contents may not be up-to-date with other translations. | ||
|
||
Please considering fixing this issue by contributing to the [tldr-pages](https://github.com/tldr-pages/tldr) project directly. | ||
|
||
<a class="btn btn-primary" href="{{ site.url }}/en/osx/base64.html">View original (English) version</a> | ||
<a class="btn" href="https://github.com/tldr-pages/tldr/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> | ||
|
||
<hr># base64 | ||
|
||
Lakukan pengodean dan pendekodean terhadap suatu berkas atau `stdin` dari/menuju format Base64, menuju `stdout` atau berkas lainnya. | ||
Informasi lebih lanjut: <https://keith.github.io/xcode-man-pages/base64.1.html>. | ||
|
||
- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju `stdout`: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas</span> | ||
|
||
- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju suatu berkas luaran/output: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas_input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-o|--output</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas_output</span> | ||
|
||
- Bungkus luaran Base64 dalam panjang karakter yang tetap (nilai `0` akan menonaktifkan pembungkusan): | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-b|--break</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">0|76|...</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas</span> | ||
|
||
- Dekodekan kode Base64 yang tersimpan dalam suatu berkas, dan keluarkan hasil menuju `stdout`: | ||
|
||
`base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-d|--decode</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-i|--input</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">jalan/menuju/berkas</span> | ||
|
||
- Kodekan isi dari `stdin` menuju `stdout`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">perintah</span>` | base64` | ||
|
||
- Dekodekan kode Base64 yang berasal dari `stdin` menuju `stdout`: | ||
|
||
<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">perintah</span>` | base64 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">-d|--decode</span> |
Oops, something went wrong.