The s switch makes $read() look for a line that begins with the specified word(s). "50479" is not a word because it's not separated from the rest of the line by a space but by a comma.

Use the w switch instead: //echo -a $read(file.txt,w,"50479"*)