Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts

Sunday, January 15, 2012

Bash Basics

I've been doing a lot of bash scripting lately.  I haven't really done any bash scripting since, oh, 2007 or so, and nothing to complicated even then, so it's been an interesting learning / remembering experience for me.  Hopefully writing it down this time will make it easier next time.  Here's a preview of what you'll find here:

  • Defining and using variables
  • Variable and arithmetic expansions
  • Arrays
  • If statements
  • While loops
  • For loops
  • Input redirection, output redirection, and pipes
  • Regex tools: grep, sed
  • Command substitution
  • Useful commands