Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

nicholasalipaz

By: a guest on Sep 24th, 2009  |  syntax: Bash  |  size: 0.05 KB  |  hits: 113  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. default=10
  3. var=${var:-$default}
  4. echo $var