Closed ghost closed 8 years ago
That's because /usr/bin/base64
prints a trailing newline. Try this instead:
#!/bin/sh
export j=""
for i in b a s e 6 4 t e s t; do
j="$j$i"
echo -n $j | /usr/bin/base64 | tr -d "\n" | bin/base64 -d
echo
done
Or /usr/bin/base64 -w0
.
Output: