简体   繁体   English

用鱼 shell 创建多个目录

[英]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}使用 bash 我可以使用以下语法轻松地一次创建多个目录: mkdir test{1..10}

However, with the fish shell this does not work.但是,对于鱼 shell,这不起作用。

How can I create multiple directories at once with the fish shell?如何使用鱼 shell 一次创建多个目录?

Fish does not support the {x..y} range expansion syntax. Fish 不支持{x..y}范围扩展语法。

Instead just use seq , like相反,只需使用seq ,例如

mkdir test(seq 1 10)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM