Languages
[Edit]
EN

Bash - decode base64 file

5 points
Created by:
Mark-Rotteveel
357

In this short article we would like to show how to decode file that is encoded with base64 using Bash.

1. When base64 code is written as single line:

cat input_base64.txt | base64.exe -d > output_data.ext

2. When base64 code is splitted into multiple lines: 

cat input_base64.txt | tr -d '\r\n' | base64.exe -d > output_data.ext

Where: tr -d '\r\n' removes new lines characters.

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join