4 ms·
Kinda strange and related but one of my first “wow cool” memories of working life was working at a company where we used Unix/Linux servers as workstations. Yea
by jyap 4y ago
Kinda strange and related but one of my first “wow cool” memories of working life was working at a company where we used Unix/Linux servers as workstations. Yeah big iron HP/DEC/Sun boxes.
So anyway my co-worker did a for loop directly as a CLI command, probably using Tcsh at the time but it stuck with me.
It was like a “wow you can just”:
for F in `seq 1 10`; do
echo $F
done
And it stuck with me because he used variable F and to this day that’s my go to variable when just blurting out a bash/zsh for loop at the CLI.
- ncmncm 4y agoYet, that is the wrong way. for I in {1..10}; do .... done