Guest User

Untitled

a guest
Nov 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/usr/bin/env foobar
  2.  
  3. if [ "`head -c 2`" = "#!" ];
  4. echo "Hashbang present"
  5. else
  6. echo "no Hashbang present"
  7. fi
  8.  
  9. if head -1 file | grep "^#!" > /dev/null;then echo "true"; fi
  10.  
  11. ack '#!'
Add Comment
Please, Sign In to add comment