Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 0.13 KB  |  hits: 9  |  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.  
  3. x=1
  4. y=2
  5.  
  6. if [ $x -gt $y ]
  7. then
  8.   echo "x is greater than y"
  9. else
  10.   echo "y is greater than x"
  11. fi
  12.  
  13. exit 0