yargs

Package: WA2L/WinTools 1.2.09
Section: General Commands (1)
Updated: 13 February 2026
Index Return to Main Contents

 

NAME

yargs - build and execute command lines from standard input

 

SYNOPSIS

WA2LWinTools/lib/[shell/]yargs [ -h | -V ]

type itemlist | yargs [ command [ initial-arguments ]]

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

yargs reads items from the standard input delimited by newlines and executes the command (default is echo) with any initial-arguments followed by items read from standard input.

Blank lines on the standard input are ignored.

Basically yargs is an alternate to the xargs command.

 

OPTIONS

-h
usage message.

-V
print program version.

command
command to be executed for each item in itemlist.

initial-arguments
initial arguments for the command.

The item from itemlist is provided as additional argument to the command.

Therefore finally 'command initial-arguments item' is executed tor each item in itemlist.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
error.

4
usage printed.

5
version printed.

 

FILES

-

 

EXAMPLES

1) remove files saved using the 'sav' command from d:\data\
  lsw -f -r d:\data\ ^
    | egrep ".+\.202[0-9][0-1][0-9][0-9][0-9]\." ^
    | yargs rm -fv

 

SEE ALSO

wintoolsintro(1), xargs(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

yargs was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2026 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 11:30:15 GMT, February 14, 2026