Skip to main content
fix typo
Link

How to run a command n imestimes in the fish shell?

improve question clarity
Link

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

Source Link

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?