Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ args — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

9.0;args, revision 9.0, 85/03/26
ARGS (ARGUMENTS) -- Echo command line arguments.
usage:  ARGS [-ERR[OUT]] string ...


FORMAT

  ARGS [-ERR[OUT]] string ...


  ARGS  writes  its  arguments,  one per line, to standard output unless -ERR is
  specified.  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 into 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 quotes.


OPTIONS

  -ERR[OUT]          Write the string(s) to error  output  instead  of  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

  1. $ args Hi there
     Hi
     there
     $

  2. $ args "Hi there" "Mary"
     Hi there
     Mary
     $

  3. $ args "Hi there, Mary." >my_file    Write "Hi there, Mary." into
                                           the file MY_FILE in the
                                           current working directory.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026