install rename command in cygwin












6















In linux exist the rename command, for rename a set of files with regular expresions.



rename 's/prefix_//' *.jpg


if I search in the cygwin package I find the renameutils package, but this don't install the the rename command, Install qmv and other similars.



How I can install rename in cygwin ?










share|improve this question



























    6















    In linux exist the rename command, for rename a set of files with regular expresions.



    rename 's/prefix_//' *.jpg


    if I search in the cygwin package I find the renameutils package, but this don't install the the rename command, Install qmv and other similars.



    How I can install rename in cygwin ?










    share|improve this question

























      6












      6








      6


      2






      In linux exist the rename command, for rename a set of files with regular expresions.



      rename 's/prefix_//' *.jpg


      if I search in the cygwin package I find the renameutils package, but this don't install the the rename command, Install qmv and other similars.



      How I can install rename in cygwin ?










      share|improve this question














      In linux exist the rename command, for rename a set of files with regular expresions.



      rename 's/prefix_//' *.jpg


      if I search in the cygwin package I find the renameutils package, but this don't install the the rename command, Install qmv and other similars.



      How I can install rename in cygwin ?







      cygwin batch-rename






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 24 '14 at 20:22









      juanpablojuanpablo

      2,90883962




      2,90883962






















          4 Answers
          4






          active

          oldest

          votes


















          5














          rename is provided by the util-linux package which can be found under the following categories in the Cygwin installer.




          • System

          • Text

          • Utils


          If you would like to find out which package provides a particular executable, you can use the cygcheck command which comes with Cygwin by default.



          $ cygcheck -p 'rename.exe'
          Found 6 matches for rename.exe
          x86_64/gvfs/gvfs-1.16.3-1
          x86_64/gvfs/gvfs-1.16.4-1
          x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.3-1
          x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.4-1
          x86_64/util-linux/util-linux-2.21.2-1
          x86_64/util-linux-debuginfo/util-linux-debuginfo-2.21.2-1








          share|improve this answer


























          • Definitely helpful, but this doesn't explain how to install or use rename in the environment.

            – jsleuth
            Aug 1 '16 at 18:04








          • 1





            @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

            – Drew Chapin
            Aug 1 '16 at 22:31





















          3














          By default, cygwin does not come with rename ability. The package util-linux is required.



          Cygwin’s rename command renames files if you tell it the exact name of your target file. This is the same as the mv command.



          Syntax:



          mv <filename> <new filename>





          share|improve this answer































            3














            The program with regular expression functionality that you require is a Perl script, sometimes called Perl Rename, or prename. It is usually distributed with Perl and is a different program to the rename provided by util-linux.



            One way to enable it on Cygwin is to download it from GitHub. This just requires that you have the Perl Cygwin package installed.



            mkdir -p ~/bin
            wget https://raw.githubusercontent.com/subogero/rename/master/rename
            mv rename ~/bin
            chmod +x ~/bin/rename
            PATH=~/bin:$PATH # Add this to your ~/.bashrc to make it permanent
            which rename





            share|improve this answer
























            • I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

              – Pysis
              Apr 11 '18 at 0:08



















            0














            download from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm



            extract and overwrite



            C:Program FilesGitmingw64



            like this






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f721088%2finstall-rename-command-in-cygwin%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              5














              rename is provided by the util-linux package which can be found under the following categories in the Cygwin installer.




              • System

              • Text

              • Utils


              If you would like to find out which package provides a particular executable, you can use the cygcheck command which comes with Cygwin by default.



              $ cygcheck -p 'rename.exe'
              Found 6 matches for rename.exe
              x86_64/gvfs/gvfs-1.16.3-1
              x86_64/gvfs/gvfs-1.16.4-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.3-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.4-1
              x86_64/util-linux/util-linux-2.21.2-1
              x86_64/util-linux-debuginfo/util-linux-debuginfo-2.21.2-1








              share|improve this answer


























              • Definitely helpful, but this doesn't explain how to install or use rename in the environment.

                – jsleuth
                Aug 1 '16 at 18:04








              • 1





                @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

                – Drew Chapin
                Aug 1 '16 at 22:31


















              5














              rename is provided by the util-linux package which can be found under the following categories in the Cygwin installer.




              • System

              • Text

              • Utils


              If you would like to find out which package provides a particular executable, you can use the cygcheck command which comes with Cygwin by default.



              $ cygcheck -p 'rename.exe'
              Found 6 matches for rename.exe
              x86_64/gvfs/gvfs-1.16.3-1
              x86_64/gvfs/gvfs-1.16.4-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.3-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.4-1
              x86_64/util-linux/util-linux-2.21.2-1
              x86_64/util-linux-debuginfo/util-linux-debuginfo-2.21.2-1








              share|improve this answer


























              • Definitely helpful, but this doesn't explain how to install or use rename in the environment.

                – jsleuth
                Aug 1 '16 at 18:04








              • 1





                @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

                – Drew Chapin
                Aug 1 '16 at 22:31
















              5












              5








              5







              rename is provided by the util-linux package which can be found under the following categories in the Cygwin installer.




              • System

              • Text

              • Utils


              If you would like to find out which package provides a particular executable, you can use the cygcheck command which comes with Cygwin by default.



              $ cygcheck -p 'rename.exe'
              Found 6 matches for rename.exe
              x86_64/gvfs/gvfs-1.16.3-1
              x86_64/gvfs/gvfs-1.16.4-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.3-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.4-1
              x86_64/util-linux/util-linux-2.21.2-1
              x86_64/util-linux-debuginfo/util-linux-debuginfo-2.21.2-1








              share|improve this answer















              rename is provided by the util-linux package which can be found under the following categories in the Cygwin installer.




              • System

              • Text

              • Utils


              If you would like to find out which package provides a particular executable, you can use the cygcheck command which comes with Cygwin by default.



              $ cygcheck -p 'rename.exe'
              Found 6 matches for rename.exe
              x86_64/gvfs/gvfs-1.16.3-1
              x86_64/gvfs/gvfs-1.16.4-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.3-1
              x86_64/gvfs-debuginfo/gvfs-debuginfo-1.16.4-1
              x86_64/util-linux/util-linux-2.21.2-1
              x86_64/util-linux-debuginfo/util-linux-debuginfo-2.21.2-1









              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 25 '14 at 15:48

























              answered Feb 24 '14 at 20:29









              Drew ChapinDrew Chapin

              3,794113557




              3,794113557













              • Definitely helpful, but this doesn't explain how to install or use rename in the environment.

                – jsleuth
                Aug 1 '16 at 18:04








              • 1





                @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

                – Drew Chapin
                Aug 1 '16 at 22:31





















              • Definitely helpful, but this doesn't explain how to install or use rename in the environment.

                – jsleuth
                Aug 1 '16 at 18:04








              • 1





                @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

                – Drew Chapin
                Aug 1 '16 at 22:31



















              Definitely helpful, but this doesn't explain how to install or use rename in the environment.

              – jsleuth
              Aug 1 '16 at 18:04







              Definitely helpful, but this doesn't explain how to install or use rename in the environment.

              – jsleuth
              Aug 1 '16 at 18:04






              1




              1





              @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

              – Drew Chapin
              Aug 1 '16 at 22:31







              @jsleuth, How to install it is in the first sentence of my answer. You have to use the cygwin installer and select the util-linux package. The original question provides example usage and does not ask how to use it once it is installed. One would have to assume the OP already knows how to use the command.

              – Drew Chapin
              Aug 1 '16 at 22:31















              3














              By default, cygwin does not come with rename ability. The package util-linux is required.



              Cygwin’s rename command renames files if you tell it the exact name of your target file. This is the same as the mv command.



              Syntax:



              mv <filename> <new filename>





              share|improve this answer




























                3














                By default, cygwin does not come with rename ability. The package util-linux is required.



                Cygwin’s rename command renames files if you tell it the exact name of your target file. This is the same as the mv command.



                Syntax:



                mv <filename> <new filename>





                share|improve this answer


























                  3












                  3








                  3







                  By default, cygwin does not come with rename ability. The package util-linux is required.



                  Cygwin’s rename command renames files if you tell it the exact name of your target file. This is the same as the mv command.



                  Syntax:



                  mv <filename> <new filename>





                  share|improve this answer













                  By default, cygwin does not come with rename ability. The package util-linux is required.



                  Cygwin’s rename command renames files if you tell it the exact name of your target file. This is the same as the mv command.



                  Syntax:



                  mv <filename> <new filename>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 24 '14 at 20:55









                  stderrstderr

                  8,96722044




                  8,96722044























                      3














                      The program with regular expression functionality that you require is a Perl script, sometimes called Perl Rename, or prename. It is usually distributed with Perl and is a different program to the rename provided by util-linux.



                      One way to enable it on Cygwin is to download it from GitHub. This just requires that you have the Perl Cygwin package installed.



                      mkdir -p ~/bin
                      wget https://raw.githubusercontent.com/subogero/rename/master/rename
                      mv rename ~/bin
                      chmod +x ~/bin/rename
                      PATH=~/bin:$PATH # Add this to your ~/.bashrc to make it permanent
                      which rename





                      share|improve this answer
























                      • I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

                        – Pysis
                        Apr 11 '18 at 0:08
















                      3














                      The program with regular expression functionality that you require is a Perl script, sometimes called Perl Rename, or prename. It is usually distributed with Perl and is a different program to the rename provided by util-linux.



                      One way to enable it on Cygwin is to download it from GitHub. This just requires that you have the Perl Cygwin package installed.



                      mkdir -p ~/bin
                      wget https://raw.githubusercontent.com/subogero/rename/master/rename
                      mv rename ~/bin
                      chmod +x ~/bin/rename
                      PATH=~/bin:$PATH # Add this to your ~/.bashrc to make it permanent
                      which rename





                      share|improve this answer
























                      • I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

                        – Pysis
                        Apr 11 '18 at 0:08














                      3












                      3








                      3







                      The program with regular expression functionality that you require is a Perl script, sometimes called Perl Rename, or prename. It is usually distributed with Perl and is a different program to the rename provided by util-linux.



                      One way to enable it on Cygwin is to download it from GitHub. This just requires that you have the Perl Cygwin package installed.



                      mkdir -p ~/bin
                      wget https://raw.githubusercontent.com/subogero/rename/master/rename
                      mv rename ~/bin
                      chmod +x ~/bin/rename
                      PATH=~/bin:$PATH # Add this to your ~/.bashrc to make it permanent
                      which rename





                      share|improve this answer













                      The program with regular expression functionality that you require is a Perl script, sometimes called Perl Rename, or prename. It is usually distributed with Perl and is a different program to the rename provided by util-linux.



                      One way to enable it on Cygwin is to download it from GitHub. This just requires that you have the Perl Cygwin package installed.



                      mkdir -p ~/bin
                      wget https://raw.githubusercontent.com/subogero/rename/master/rename
                      mv rename ~/bin
                      chmod +x ~/bin/rename
                      PATH=~/bin:$PATH # Add this to your ~/.bashrc to make it permanent
                      which rename






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 26 '17 at 17:55









                      Ian MackinnonIan Mackinnon

                      2,00442230




                      2,00442230













                      • I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

                        – Pysis
                        Apr 11 '18 at 0:08



















                      • I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

                        – Pysis
                        Apr 11 '18 at 0:08

















                      I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

                      – Pysis
                      Apr 11 '18 at 0:08





                      I had to use this method since installing it in Cygwin with apt-cyg or sage says it worked fine, but I still only have the original utility available.

                      – Pysis
                      Apr 11 '18 at 0:08











                      0














                      download from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm



                      extract and overwrite



                      C:Program FilesGitmingw64



                      like this






                      share|improve this answer




























                        0














                        download from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm



                        extract and overwrite



                        C:Program FilesGitmingw64



                        like this






                        share|improve this answer


























                          0












                          0








                          0







                          download from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm



                          extract and overwrite



                          C:Program FilesGitmingw64



                          like this






                          share|improve this answer













                          download from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm



                          extract and overwrite



                          C:Program FilesGitmingw64



                          like this







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 29 at 11:40









                          yongfa365yongfa365

                          101




                          101






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f721088%2finstall-rename-command-in-cygwin%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Plaza Victoria

                              In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                              How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...