How to add multiple directories like the name 1-100 in one command

The name of the pictureThe name of the pictureThe name of the pictureClash 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









share|improve this question



























    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









    share|improve this question

























      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









      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 13 mins ago









      G-Man

      12.1k92860




      12.1k92860










      asked 1 hour ago









      Suresh

      14




      14




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          for folder in $(seq 1 100);do mkdir $folder;done





          share|improve this answer






















          • 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

















          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





          share|improve this answer




















          • 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










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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





          share|improve this answer






















          • 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














          up vote
          1
          down vote



          accepted










          for folder in $(seq 1 100);do mkdir $folder;done





          share|improve this answer






















          • 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












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          for folder in $(seq 1 100);do mkdir $folder;done





          share|improve this answer














          for folder in $(seq 1 100);do mkdir $folder;done






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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
















          • 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












          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





          share|improve this answer




















          • 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














          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





          share|improve this answer




















          • 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












          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





          share|improve this answer












          You don’t need a (for...do...done) loop; just do



          mkdir $seq(1 100)


          Or, in bash,



          mkdir 1..100






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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
















          • 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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?