I'm trying to automate git cloning for a class and I'm having trouble with formatting the string in bash.
#!/bin/sh
students=()
while IFS=, read -r lastname firstname; do
#students+="$lastname$firstname"
student=$lastname$firstname
echo $student
echo $lastname
git clone "...$student/unit02.git" $student
done < studentNames.csv | tr -d '" '
The echo will produce the correct format, the names without quotation marks. When cloning, however, both uses of the $student variable returns back to unformatted.