ruanyf / weekly

科技爱好者周刊,每周五发布
46.96k stars 2.85k forks source link

windows 下 xargs 的简单批处理实现 #59

Open DoctorLai opened 5 years ago

DoctorLai commented 5 years ago

https://helloacm.com/simple-xargs-batch-implementation-for-windows/

ruanyf commented 5 years ago

Windows 平台使用 xargs 的用户不多吧。

DoctorLai commented 5 years ago

对, 主要是我在 windows 下开发, 然后 那天需要运行这样一个命令:

git branch | grep -v "develop" | xargs git branch -D

rockswang commented 5 years ago

装个cygwin更好点吧

DoctorLai commented 5 years ago

装个cygwin更好点吧

这个是轻量级的,而且可以满足大部分情况下的需要。

ritingliudd01 commented 5 years ago

cygwin

@rockswang Solved my problem with this terminal. Thanks a million.

liuzhaomax commented 2 years ago

将cygwin的xargs.exe加入到环境变量可以使用 https://github.com/DoctorLai/BatchUtils/blob/master/xargs.cmd 这个对于我来说有兼容性问题。