Telaryon

Argumentumban lévő karakterláncok összehasonlítása

Apr 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if[s# -eq2]
  4.     then if[$1=$2]
  5.         then echo"The strings are the same"
  6.         else echo"The strings are not the same"
  7.         fi
  8.     else echo"2 parameter required"
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment