9.0;args, revision 9.0, 85/03/26
args (arguments) -- Echo command line arguments.
usage: args [-err[out]] string ...
DESCRIPTION
args writes its arguments, one per line, to standard output unless you
specify -err. Use it to write to files by redirecting standard output
into a file with the >pathname expression. The args command is useful for
inserting messages and diagnostics to be reported to the display to shell
scripts and for inserting lines of text into files.
ARGUMENTS
string (required)
Specify the string of characters to be written. Multiple
strings are permitted; separate strings with blanks. Strings
are written one per line. To write phrases containing literal
blanks, enclose strings in quotation marks.
OPTIONS
-err[out] Write the string(s) to error output instead of to standard
output. This option is useful for writing to the transcript
pad (where error output is usually directed) from an args
command inside a pipeline, since standard output is then
connected to the pipe.
EXAMPLES
$ args Hi there
Hi
there
$
$ args "Hi there" "Mary"
Hi there
Mary
$
Write "Hi there, Mary." into the file my_file in the current working
directory.
$ args "Hi there, Mary." >my_file