I am a new guy for bash shell. I am confused by the below script.
#!/bin/bash
input=name.csv
while IFS=',' read -r Family_name First_name
do
echo $Family_name
echo $First_name
done < $input
Intuitively, I thought the done is some kind of boundary marker that told you the while field is over.
Here it shows that done can take data from a variable. so what is the meaning/function of done in the while loop? Thanks.