I want to read lines from a text file and save them in a variable.

```
  cat ${1} | while read name; do

  namelist=${name_list},${name}

  done

```

the file looks like this:

```
David

Kevin

Steve
etc.

```

and i want to get this output instead

David, Kevin, Steve etc.

and save it to the variable ${name\_list}