Unless you have to use cmp , you can use [ ] for comparison: if [ "$test1" = "$test2" ] then echo "Both words contents are same" else echo ...
確定! 回上一頁