top | item 45101623

(no title)

no_time | 6 months ago

Not really a utility per se, but I really really wish that echo {1..n} would run echo n number of times with the current index as the argument instead of expanding to a single string that gets printed.

I know you can do a for loop as a one liner but I somehow never get it right the first time and turns out to be a bit of a PIA.

discuss

order

Forgret|6 months ago

You can use the following command:

for i in {1..5}; do echo $i; done