Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.12 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. #!/bin/bash
  2.  
  3. if [[ "`hostname`" =~ "ghost.*" ]]
  4. then
  5.   echo "You're on ghost"
  6. else
  7.   echo "You're not on ghost"
  8. fi