Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
cmd:echo [2011/03/23 17:32]
mcb30
cmd:echo [2011/03/27 11:53]
mcb30
Line 1: Line 1:
-====== Print text to the console ======+====== Print text to console ======
  
 ===== Synopsis ===== ===== Synopsis =====
  
-    echo [...]+    echo [-n] [...]
  
 ===== Examples ===== ===== Examples =====
Line 18: Line 18:
  
     echo MAC address is ${net0/mac}     echo MAC address is ${net0/mac}
 +
 +=== Ask the user to supply a filename ===
 +
 +    echo -n Enter boot filename:
 +    read filename
  
 ===== Description ===== ===== Description =====
Line 27: Line 32:
     iPXE> echo ${filename}     iPXE> echo ${filename}
     http://​boot.ipxe.org/​demo/​boot.php     http://​boot.ipxe.org/​demo/​boot.php
 +
 +If the ''​-n''​ option is specified, then the trailing newline will not be printed.
  
 ===== See also ===== ===== See also =====
cmd/echo.txt ยท Last modified: 2011/03/27 11:53 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.