Is there any hack to not evaluate variables in bash before runtime? I have a kind of for loop like this:
the problem is i have it inside a echo… otherwise this works great!
for i in $(seq 0 100); do echo $(echo $RANDOM % 10 | bc); done
the result is for example always 3…
Beside your problem: your solution uses 2 external processes, 1 pipe, 1 subprocess for a trivial exercise. Pure Bash: