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?
Fish does not support the {x..y}
range expansion syntax.
Instead just use seq
, like
mkdir test(seq 1 10)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.