Advertisement
pkramer

Untitled

Jul 11th, 2011
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. ~/Desktop: if [ "ifconfig -a | grep 'eth0' | awk '{print $1}' | tr '\n' '#'" = "eth0#" ]; then echo "yay"; else echo "boo"; fi
  2. boo
  3.  
  4. ~/Desktop: ifconfig -a | grep 'eth0' | awk '{print $1}' | tr '\n' '#'
  5. eth0#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement