Modar internal command:


 echo

To print message to screen, or log file, or a file specified.

  • Syntax
    echo [-options] <messages> [>>file name]

  • Examples

    # print number of segments to screen

    echo -hs "|    number of segments:    $nseg"

     

    # save solute extension to file ¡°soute_size.inc¡±

    echo xext=$xext >  "solute_size.inc"

    echo yext=$yext >> "solute_size.inc"

    echo zext=$zext >> "solute_size.inc"


  • Options

    h

    To hide command line, i.e. not print original content of command, because Modar prints original contents of command always.

    s

    Print message to STDERR only.

    n

    By default “echo” printing message with a new line, use this option to print messages without a line breaker at the end.


  • Redirection

    means overwriting (creating a new file)

    >> 

    means appending to the file if exists otherwise a new file will be created.



  • Variables exported
    none


 

 

 

 

 

 

 

 

  Contact us

  Phone: 400-660-8656
  Email: support@beemd.org

 

       我们长期和北京市计算中心合作提供计算培训服务,承接托管计算业务,如有需求请随时联系我们。