# Unix script problem

by Bimpo
Tags: script, unix
 P: 10 1. The problem statement, all variables and given/known data Trying to find how many numbers contains 5 between 1 to 4321 2. Relevant equations n/a 3. The attempt at a solution #!/bin/bash typeset -i current=1 typeset -i times=0 while [ $current -le 4321 ] ; do if [ ] ; then <<<<<<<<<<< stuck here, not sure what to put in if, tried grep etc nonthing works yet times=times+1 fi current=current+1 done echo there are$times numbers that has a 5