News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

xargs for Windows

Started by Vortex, February 12, 2023, 09:38:53 PM

Previous topic - Next topic

Vortex

What's xargs?

Quotexargs (short for "extended arguments" [1]) is a command on Unix and most Unix-like operating systems used to build and execute commands from standard input. It converts input from standard input into arguments to a command.

Some commands such as grep and awk can take input either as command-line arguments or from the standard input. However, others such as cp and echo can only take input as arguments, which is why xargs is necessary.

https://en.wikipedia.org/wiki/Xargs

Windows xargs clone: PPX2

https://github.com/ghuls/ppx2

Some examples of usage :

Calculating the MD5 hash of a group of files under a folder :

dir /b /s /a-d D:\Folder | ppx2.exe -L 1 md5sum.exe "{}" > md5.txt

.mpg convertion :

dir /b *.mpg | ppx2 -P 4 -L 1 ffmpeg.exe -i "{}" -quality:v 1 "{}.mp4"

Attached is the project built with PellesC v11