Is there a way to implement the following using \'for\' in KornShell (ksh)? Here is the C equivalent:
for(i=1;i<20;i++) { printf(\"%d\",i); } <
for(i=1;i<20;i++) { printf(\"%d\",i); }
Unfortunately, it looks as if ksh does not have support for range-based brace expansion or support the (( )) construct so to do this compactly, you'll need to call the external binary seq like so:
ksh
(( ))
seq
for i in $(seq 1 20); do echo $i done