First page Back Continue Last page Overview

 

Scripting at the Command Line

 
  • Scripts can be typed at the bash prompt

    • if/case/for/while statements cause extended prompt
    • Can also separate lines with semicolon (;)
  • Define functions for code reuse

    • Store common functions in ~/.bashrc
  • bash builtin "fc" for long commands

    • Default editor is vi or $EDITOR