Windows equivalent to xargs?
up vote
11
down vote
favorite
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
add a comment |
up vote
11
down vote
favorite
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
add a comment |
up vote
11
down vote
favorite
up vote
11
down vote
favorite
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
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
windows-7 linux command-line django
asked Sep 30 '13 at 20:10
Gustavo Reyes
158116
158116
add a comment |
add a comment |
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
.
Plain and simple, thanks!
– Gustavo Reyes
Sep 30 '13 at 21:10
add a comment |
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
add a comment |
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
add a comment |
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
});
}
});
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
Required, but never shown
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
.
Plain and simple, thanks!
– Gustavo Reyes
Sep 30 '13 at 21:10
add a comment |
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
.
Plain and simple, thanks!
– Gustavo Reyes
Sep 30 '13 at 21:10
add a comment |
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
.
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
.
answered Sep 30 '13 at 20:47
kworr
62357
62357
Plain and simple, thanks!
– Gustavo Reyes
Sep 30 '13 at 21:10
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
Minimalist xargs for Windows created using pyinstaller and a short python script is available below:
https://github.com/manasmbellani/xargswin/releases
answered Dec 5 '17 at 7:15
John
1316
1316
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Dec 5 at 20:34
Zhihua Lai
1228
1228
add a comment |
add a comment |
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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