I have a file out.csv I have to check if the name inputed by user exists in the file(comma separated) or not. I am taking name using read but while checking for equality I am getting error
IFS="," while read tname tnum do if [ $tname -eq $name ]; then flag=1 break fi done < out.csv echo "$ch"