Created
February 3, 2014 14:19
-
-
Save kunst1080/8784620 to your computer and use it in GitHub Desktop.
xargs like command on cmd.exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if "%~1"=="" goto :USAGE | |
:MAIN | |
set COMMAND=%* | |
for /f "usebackq tokens=*" %%o in (`findstr .*`) do ( | |
call %%COMMAND:?=%%o%% | |
) | |
goto :eof | |
:USAGE | |
echo 標準入力の各行に対し、コマンドを発行します | |
echo each コマンド | |
echo ※標準入力は変数?となります | |
goto :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello