---
title: "Discussion on \"A base64 decoder in pure shell script\" | Hashnode"
description: "Discussion on \"A base64 decoder in pure shell script\". I can't go into the details of why, but at work we found ourselves in a position where we needed to update one of the JAR files in our agent software using nothing more than a shell script. The agents run on customer endpoints, so we have zero contro..."
url: "https://hashnode.com/posts/a-base64-decoder-in-pure-shell-script/61d715899cea31197e02bdb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A base64 decoder in pure shell script](https://gblues.hashnode.dev/a-base64-decoder-in-pure-shell-script?utm_source=hashnode&utm_medium=feed)

I can't go into the details of why, but at work we found ourselves in a position where we needed to update one of the JAR files in our agent software using nothing more than a shell script. The agents run on customer endpoints, so we have zero contro...

Jan 6, 2022 · 4 min read · gblues.hashnode.dev  
Read the article

-   [#bash](https://hashnode.com/tag/bash)
-   [#shell](https://hashnode.com/tag/shell)

## Written by

[Nathan Strong](https://hashnode.com/@gblues)

@gblues · Tigard, OR

  
[View profile](https://hashnode.com/@gblues)

Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Gan Louy](https://hashnode.com/@louygan)

[Sep 1, 2023](https://hashnode.com/posts/a-base64-decoder-in-pure-shell-script/61d715899cea31197e02bdb7/comment/64f1588466816b6d3918b425)

for ((i = 0; i <= ${#word}-1; ++i)); do

should be "<=", "<" will cause broken output.
