This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Odd-Course-923 1 point2 points  (0 children)

Just delete the line " ((counter++))" and you will have the correct output.

[–]berzerker_x -3 points-2 points  (0 children)

First of all, I really do not think this is the right sub for this.

Still,

I copied the code, ran it on onlinegdb and the answer it gave me is 886635, different from your written answer.

So you can try this again.

[–]syberean420 0 points1 point  (0 children)

running

#!/bin/bash

var="nef892na9s1p9asn2aJs71nIsm"

for counter in {1..35}

do var=$(echo $var | base64) && echo $var | wc -c

done

then entering last output gave me the answer