日本語でおkだが、

if [[ $? -nq 0 ]]; then
ls -x
else
cat /etc/hosts
fi |