2012-06-22 bashの文字列比較 コンピュータ設定・操作 #ソフトウェア if文の行ののスペースの位置にかなり気を使う。 #!/bin/bash str1="abc" str2="abd" if "${str1}" == "${str2}" then echo "Hit!" fi