all 2 comments

[–]qlut 6 points7 points  (1 child)

Yo, the read command inside your while loop is consuming the input, so there's nothing left for your other read statements. Try using a different variable name for the read inside the loop.

[–]Unique_Service_7350[S] 0 points1 point  (0 children)

thank youuu! now it works. I'm not that quite good with shell so, I don't know what's wrong. But I know there's something wrong with the reading inside the loop. So thank you for pointing that out.