home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 224_01 / cecho.hlp < prev    next >
Text File  |  1986-12-06  |  2KB  |  44 lines

  1. NAME
  2.      cecho - echo arguments
  3.  
  4. SYNTAX
  5.      cecho [ -n ] [ arg ] ...
  6.  
  7. DESCRIPTION
  8.      Echo writes its arguments separated by blanks and terminated
  9.      by a newline on the standard output.  If the flag -n is
  10.      used, no newline is added to the output.
  11.  
  12.      The following are the expansions of parameters for cecho and the 
  13.      other unix commands (listed in order of expansion):
  14.  
  15.          \        For quoting the special characters  $  "  '
  16.                   so that their expansions are not interpreted.
  17.                   If the \ precedes any other character, the \ will remain.
  18.  
  19.       " ... "     For grouping words with expansions (but not file name
  20.                   generation).
  21.  
  22.       ' ... '     For grouping words, but expansions are not performed.
  23.  
  24.        $name      For substitution of the environment parameter "name".
  25.                   If name is not found, the NULL string is substituted.
  26.  
  27.      ${name}...   For expanding the environment parameter "name" when the 
  28.                   parameter is embedded in a string.
  29.  
  30.          *        For file name generation.  The * represents any string.
  31.          ?        The ? represents any single character.
  32.  
  33. EXAMPLES
  34.      Assume $PATH = \;\dos; 
  35.  
  36.            cecho $path            -->   \;\dos;
  37.            cecho ${path}others    -->   \;\dos;others
  38.            cecho "hello \$path"   -->   hello $path
  39.            cecho "hello $path"    -->   hello \;\dos;
  40.            cecho 'hello $path'    -->   hello $path
  41.            cecho *.c              -->   cecho.c  ...
  42.            cecho "*.c"            -->   *.c
  43.            cecho '*.c'            -->   *.c
  44.