LoginSignup
0

More than 1 year has passed since last update.

posted at

MacのターミナルでExcelファイルとbase64のエンコード/デコード変換

Macのターミナルで、Excelファイルをbase64にエンコードしたり、base64をデコードしてExcelファイルを生成する方法を残しておきます。

Excelファイル → base64

base64 -i template.xlsx [-o output.txt]

-oオプションを付けない場合は、base64がターミナル上に出力されます。

base64 → Excelファイル

echo "BASE_64_STRING" | base64 --decode > template.xlsx

ご参考までに。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0