I'm trying to make a script that will take an input from a user (a name and username) then direct that input to a text file named with that username. The code I have below will create the file, however doesn't direct any of the data into the file. Can anybody help me with this problem? Thanks
echo "What is your name?"
read name
echo "What is your chosen username?"
read username
cd user_records
$name >> "$username".txt
$username >> "$username".txt
echo...echo $name >>...