How to write for statement in Shell

for i in $(seq 42); do echo $i; done