chore: 格式化 base64.md 文档。 #181

This commit is contained in:
jaywcjlove 2020-08-19 17:46:49 +08:00
parent 8c21b4e7c5
commit 82f0830359
1 changed files with 24 additions and 22 deletions

View File

@ -1,4 +1,5 @@
## base64 base64
===
base64 编码/解码文件或标准输入输出 base64 编码/解码文件或标准输入输出
@ -8,44 +9,45 @@ base64将`文件`或`标准输入`编码或解码为标准输出;
### 语法 ### 语法
```shell
base64 [OPTION]... [FILE] base64 [OPTION]... [FILE]
```
### 参数 ### 参数
``` ```shell
-d, --decode -d, --decode # 解码
解码 -i, --ignore-garbage # 解码时,忽略非字母字符
-w, --wrap=COLS # 在指定的字符数后自动换行(默认为76), 0 为禁用自动换行
-i, --ignore-garbage --help # 显示此帮助说明并退出
解码时,忽略非字母字符 --version # 输出版本信息并退出
-w, --wrap=COLS
在指定的字符数后自动换行(默认为76), 0 为禁用自动换行
--help 显示此帮助说明并退出
--version
输出版本信息并退出
``` ```
### 实例 ### 实例
+ 编码字符串 编码字符串
```
```bash
printf foo|base64 printf foo|base64
``` ```
+ 编码文件 编码文件
```
```bash
base64 file base64 file
``` ```
+ 解码 解码
```
```bash
printf Zm9v|base64 -d printf Zm9v|base64 -d
``` ```
+ 解码文件 解码文件
```
```bash
base64 -d file base64 -d file
``` ```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->