#!/usr/bin/env bash echo "Digite um número" read NUM quintaParte=$[$NUM/5] if [ $quintaParte -lt 50 || $quintaParte -gt 1000 ];then echo -ne $quintaParte fi
Standard input is empty
Digite um número
./prog.sh: line 6: /5: syntax error: operand expected (error token is "/5") ./prog.sh: line 8: [: missing `]' ./prog.sh: line 8: -gt: command not found