Skip to main content
1 of 3

How to run a command n number of times in fish shell?

The fish documentation gives the following way to run a for loop.

for i in 1 2 3 4 5;
    echo $i
end

Let us say I want to run a command 1000 times, How can I do it?