Windows equivalent to xargs?











up vote
11
down vote

favorite
4












What would be the Windows 7 Equivalent for the following command?



find . -type f -print0 | xargs -0 sed -i 's/ url ([^" >][^ >]*)/ url "1"/g'


I am trying to migrate Django 1.4 to 1.5










share|improve this question


























    up vote
    11
    down vote

    favorite
    4












    What would be the Windows 7 Equivalent for the following command?



    find . -type f -print0 | xargs -0 sed -i 's/ url ([^" >][^ >]*)/ url "1"/g'


    I am trying to migrate Django 1.4 to 1.5










    share|improve this question
























      up vote
      11
      down vote

      favorite
      4









      up vote
      11
      down vote

      favorite
      4






      4





      What would be the Windows 7 Equivalent for the following command?



      find . -type f -print0 | xargs -0 sed -i 's/ url ([^" >][^ >]*)/ url "1"/g'


      I am trying to migrate Django 1.4 to 1.5










      share|improve this question













      What would be the Windows 7 Equivalent for the following command?



      find . -type f -print0 | xargs -0 sed -i 's/ url ([^" >][^ >]*)/ url "1"/g'


      I am trying to migrate Django 1.4 to 1.5







      windows-7 linux command-line django






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 30 '13 at 20:10









      Gustavo Reyes

      158116




      158116






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          10
          down vote



          accepted










          I think that installing original tools is much better in terms of unification then rewriting everything. I personally use GOW, it still misses a tiny number of commands but contains all most needed stuff.



          If you still want to hit batch programming there's a good list of all commands: http://ss64.com/nt/, I think you need forfiles.






          share|improve this answer





















          • Plain and simple, thanks!
            – Gustavo Reyes
            Sep 30 '13 at 21:10


















          up vote
          0
          down vote













          Minimalist xargs for Windows created using pyinstaller and a short python script is available below:



          https://github.com/manasmbellani/xargswin/releases






          share|improve this answer




























            up vote
            0
            down vote













            Copied from here



            @echo off
            :: example: git branch | grep -v "develop" | xargs git branch -D
            :: example xargs -a input.txt echo
            :: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
            setlocal enabledelayedexpansion

            set args=
            set file='more'

            :: read from file
            if "%1" == "-a" (
            if "%2" == "" (
            echo Correct Usage: %0 -a Input.txt command
            goto end
            )
            set file=%2
            shift
            shift
            goto start
            )

            :: read from stdin
            set args=%1
            shift

            :start
            if [%1] == goto start1
            set args=%args% %1
            shift
            goto start

            :start1
            for /F "tokens=*" %%a in (!file!) do (
            %args% %%a
            )

            :end





            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',
              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%2f652492%2fwindows-equivalent-to-xargs%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              10
              down vote



              accepted










              I think that installing original tools is much better in terms of unification then rewriting everything. I personally use GOW, it still misses a tiny number of commands but contains all most needed stuff.



              If you still want to hit batch programming there's a good list of all commands: http://ss64.com/nt/, I think you need forfiles.






              share|improve this answer





















              • Plain and simple, thanks!
                – Gustavo Reyes
                Sep 30 '13 at 21:10















              up vote
              10
              down vote



              accepted










              I think that installing original tools is much better in terms of unification then rewriting everything. I personally use GOW, it still misses a tiny number of commands but contains all most needed stuff.



              If you still want to hit batch programming there's a good list of all commands: http://ss64.com/nt/, I think you need forfiles.






              share|improve this answer





















              • Plain and simple, thanks!
                – Gustavo Reyes
                Sep 30 '13 at 21:10













              up vote
              10
              down vote



              accepted







              up vote
              10
              down vote



              accepted






              I think that installing original tools is much better in terms of unification then rewriting everything. I personally use GOW, it still misses a tiny number of commands but contains all most needed stuff.



              If you still want to hit batch programming there's a good list of all commands: http://ss64.com/nt/, I think you need forfiles.






              share|improve this answer












              I think that installing original tools is much better in terms of unification then rewriting everything. I personally use GOW, it still misses a tiny number of commands but contains all most needed stuff.



              If you still want to hit batch programming there's a good list of all commands: http://ss64.com/nt/, I think you need forfiles.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 30 '13 at 20:47









              kworr

              62357




              62357












              • Plain and simple, thanks!
                – Gustavo Reyes
                Sep 30 '13 at 21:10


















              • Plain and simple, thanks!
                – Gustavo Reyes
                Sep 30 '13 at 21:10
















              Plain and simple, thanks!
              – Gustavo Reyes
              Sep 30 '13 at 21:10




              Plain and simple, thanks!
              – Gustavo Reyes
              Sep 30 '13 at 21:10












              up vote
              0
              down vote













              Minimalist xargs for Windows created using pyinstaller and a short python script is available below:



              https://github.com/manasmbellani/xargswin/releases






              share|improve this answer

























                up vote
                0
                down vote













                Minimalist xargs for Windows created using pyinstaller and a short python script is available below:



                https://github.com/manasmbellani/xargswin/releases






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Minimalist xargs for Windows created using pyinstaller and a short python script is available below:



                  https://github.com/manasmbellani/xargswin/releases






                  share|improve this answer












                  Minimalist xargs for Windows created using pyinstaller and a short python script is available below:



                  https://github.com/manasmbellani/xargswin/releases







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 5 '17 at 7:15









                  John

                  1316




                  1316






















                      up vote
                      0
                      down vote













                      Copied from here



                      @echo off
                      :: example: git branch | grep -v "develop" | xargs git branch -D
                      :: example xargs -a input.txt echo
                      :: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
                      setlocal enabledelayedexpansion

                      set args=
                      set file='more'

                      :: read from file
                      if "%1" == "-a" (
                      if "%2" == "" (
                      echo Correct Usage: %0 -a Input.txt command
                      goto end
                      )
                      set file=%2
                      shift
                      shift
                      goto start
                      )

                      :: read from stdin
                      set args=%1
                      shift

                      :start
                      if [%1] == goto start1
                      set args=%args% %1
                      shift
                      goto start

                      :start1
                      for /F "tokens=*" %%a in (!file!) do (
                      %args% %%a
                      )

                      :end





                      share|improve this answer

























                        up vote
                        0
                        down vote













                        Copied from here



                        @echo off
                        :: example: git branch | grep -v "develop" | xargs git branch -D
                        :: example xargs -a input.txt echo
                        :: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
                        setlocal enabledelayedexpansion

                        set args=
                        set file='more'

                        :: read from file
                        if "%1" == "-a" (
                        if "%2" == "" (
                        echo Correct Usage: %0 -a Input.txt command
                        goto end
                        )
                        set file=%2
                        shift
                        shift
                        goto start
                        )

                        :: read from stdin
                        set args=%1
                        shift

                        :start
                        if [%1] == goto start1
                        set args=%args% %1
                        shift
                        goto start

                        :start1
                        for /F "tokens=*" %%a in (!file!) do (
                        %args% %%a
                        )

                        :end





                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Copied from here



                          @echo off
                          :: example: git branch | grep -v "develop" | xargs git branch -D
                          :: example xargs -a input.txt echo
                          :: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
                          setlocal enabledelayedexpansion

                          set args=
                          set file='more'

                          :: read from file
                          if "%1" == "-a" (
                          if "%2" == "" (
                          echo Correct Usage: %0 -a Input.txt command
                          goto end
                          )
                          set file=%2
                          shift
                          shift
                          goto start
                          )

                          :: read from stdin
                          set args=%1
                          shift

                          :start
                          if [%1] == goto start1
                          set args=%args% %1
                          shift
                          goto start

                          :start1
                          for /F "tokens=*" %%a in (!file!) do (
                          %args% %%a
                          )

                          :end





                          share|improve this answer












                          Copied from here



                          @echo off
                          :: example: git branch | grep -v "develop" | xargs git branch -D
                          :: example xargs -a input.txt echo
                          :: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
                          setlocal enabledelayedexpansion

                          set args=
                          set file='more'

                          :: read from file
                          if "%1" == "-a" (
                          if "%2" == "" (
                          echo Correct Usage: %0 -a Input.txt command
                          goto end
                          )
                          set file=%2
                          shift
                          shift
                          goto start
                          )

                          :: read from stdin
                          set args=%1
                          shift

                          :start
                          if [%1] == goto start1
                          set args=%args% %1
                          shift
                          goto start

                          :start1
                          for /F "tokens=*" %%a in (!file!) do (
                          %args% %%a
                          )

                          :end






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 5 at 20:34









                          Zhihua Lai

                          1228




                          1228






























                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2f652492%2fwindows-equivalent-to-xargs%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

                              flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                              Mangá

                              Eduardo VII do Reino Unido