Difference between revisions of "OPS435 Lecture 4 - Bash"

From CDOT Wiki
Jump to: navigation, search
Line 9: Line 9:
 
** while
 
** while
 
** for
 
** for
* read command
+
* Parameter expansion examples
 +
** echo $1
 +
** echo ${11}
 +
* Input from the user
 +
** read command

Revision as of 12:27, 2 February 2016

  • Writing a script
  • Receiving parameters
  • Return codes
  • true and false commands
  • Program control:
    • if
    • test, [
    • [[
    • while
    • for
  • Parameter expansion examples
    • echo $1
    • echo ${11}
  • Input from the user
    • read command