July 29, 2011

xargs

xargs is a command on Unix and most Unix-like operating systems used to build and execute command lines from standard input. Under the Linux kernel before version 2.6.23, arbitrarily long lists of parameters could not be passed to a command,[1] so xargs breaks the list of arguments into sublists small enough to be acceptable.

tasklist \
| awk /plugin-container.exe/"{print$2}" \
| xargs -I ! pd -p ! \
| grep -az "video server"

References:
wikipedia.org/wiki/Xargs

No comments:

Post a Comment