Advertisement
MeikoDis

isbest

Nov 21st, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2. if [ $# -lt 2 ]
  3. then
  4.         echo -e "$0: Too less arguments.\nSyntax: $0 [first noun] [second noun]"
  5. fi
  6.  
  7. if [ $# -gt 2 ]
  8. then
  9.         echo -e "$0: Too many arguments.\nSyntax: $0 [first noun] [second noun]"
  10. fi
  11.  
  12. if [ $# -eq 2 ]
  13. then
  14.         echo -e "$1 is best $2."
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement