How to add multiple directories like the name 1-100 in one command
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I need to create multiple directories using one command.ÃÂ
Is it possible?
Like directory name starts from 1-100.
mkdir 1..100
shell centos command-line command
add a comment |Â
up vote
-1
down vote
favorite
I need to create multiple directories using one command.ÃÂ
Is it possible?
Like directory name starts from 1-100.
mkdir 1..100
shell centos command-line command
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I need to create multiple directories using one command.ÃÂ
Is it possible?
Like directory name starts from 1-100.
mkdir 1..100
shell centos command-line command
I need to create multiple directories using one command.ÃÂ
Is it possible?
Like directory name starts from 1-100.
mkdir 1..100
shell centos command-line command
shell centos command-line command
edited 13 mins ago
G-Man
12.1k92860
12.1k92860
asked 1 hour ago
Suresh
14
14
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
for folder in $(seq 1 100);do mkdir $folder;done
pls high light the cmd
â Suresh
1 hour ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
add a comment |Â
up vote
0
down vote
You donâÂÂt need a (for
...do
...done
) loop; just do
mkdir $seq(1 100)
Or, in bash,
mkdir 1..100
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
for folder in $(seq 1 100);do mkdir $folder;done
pls high light the cmd
â Suresh
1 hour ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
add a comment |Â
up vote
1
down vote
accepted
for folder in $(seq 1 100);do mkdir $folder;done
pls high light the cmd
â Suresh
1 hour ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
for folder in $(seq 1 100);do mkdir $folder;done
for folder in $(seq 1 100);do mkdir $folder;done
edited 57 mins ago
answered 1 hour ago
FrontENG
213111
213111
pls high light the cmd
â Suresh
1 hour ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
add a comment |Â
pls high light the cmd
â Suresh
1 hour ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
pls high light the cmd
â Suresh
1 hour ago
pls high light the cmd
â Suresh
1 hour ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
[root@localhost test1]# $(seq 1 100);do mkdir $folder -bash: syntax error near unexpected token `do'
â Suresh
59 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
@Suresh copy the whole command including from the âÂÂforâÂÂ
â FrontENG
58 mins ago
add a comment |Â
up vote
0
down vote
You donâÂÂt need a (for
...do
...done
) loop; just do
mkdir $seq(1 100)
Or, in bash,
mkdir 1..100
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
add a comment |Â
up vote
0
down vote
You donâÂÂt need a (for
...do
...done
) loop; just do
mkdir $seq(1 100)
Or, in bash,
mkdir 1..100
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You donâÂÂt need a (for
...do
...done
) loop; just do
mkdir $seq(1 100)
Or, in bash,
mkdir 1..100
You donâÂÂt need a (for
...do
...done
) loop; just do
mkdir $seq(1 100)
Or, in bash,
mkdir 1..100
answered 19 mins ago
G-Man
12.1k92860
12.1k92860
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
add a comment |Â
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
It should be mkdir $(seq 1 100),and yes a for loop is not necessary in this case,I just got used to it..
â FrontENG
7 mins ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478043%2fhow-to-add-multiple-directories-like-the-name-1-100-in-one-command%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password