Reading /etc/rc.status

What Cool Bash Stuff Did I Learn?
  • What does RC Stand For? ==> Resource Control
  • How do I tell vim my file type is Bash? 
    • I can set the following anywhere in the file,
      • # vim: set filetype=sh
      • # vim: syntax=sh
  • How can I make my if()s look prettier? ==> Use {}
    [ -e $pathToFile ] || {
       echo >&2 "File $file does not exit"
       exit 1
    }
    
  • How do I prompt a command to ask me for input?
    • ==> cat file-to-prepend - file-to-append > output-file

Comments

Recent posts