mac下base64命令

fjh-Mac-Pro:ais fengjianhua$ base64 --help
Version DEBUG
Usage: base64 [-dhvD] [-b num] [-i in_file] [-o out_file]
  -h, --help     display this message
  -v, --version  display version info
  -d, --debug    enables additional output to stderr
  -D, --decode   decodes input
  -b, --break    break encoded string into num character lines
  -i, --input    input file (default: "-" for stdin)

  -o, --output   output file (default: "-" for stdout)

 

base64 -i 1.txt

 

base64 -D -i 2.txt

 

 

字符串: echo "abc" | base64

解码:     echo "YWJjCg==" | base64 -D

 

你可能感兴趣的:(macOS)