1 nano로 integer.sh 파일에 다음 스크립트를 작성합니다.
integer.sh
#!/bin/bash
A="34" ------------------------- ①
B="34"
echo "A=$A, B=$B"
if [ "$A" -eq "$B" ]; then ----- ②
echo "-eq operator: True"
else
echo "-eq operator: False"
fi
if [ "$A" -ne "$B" ]; then ----- ③
echo "-ne operator: True"
else
echo "-ne operator: False"
fi
if [ "$A" -le "$B" ]; then ----- ④
echo "-le operator: True"
else
echo "-le operator: False"
fi