Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating multiple directories with fish shell

Using bash I can easily create a number of directories at once with this syntax: mkdir test{1..10}

However, with the fish shell this does not work.

How can I create multiple directories at once with the fish shell?

like image 219
J Heschl Avatar asked Sep 13 '26 21:09

J Heschl


1 Answers

Fish does not support the {x..y} range expansion syntax.

Instead just use seq, like

mkdir test(seq 1 10)
like image 151
faho Avatar answered Sep 16 '26 13:09

faho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!