Hi Everyone,
I want to try an experiment where I take a user's input (name) and then put it in a text file. Here's my example:
#!/bin/bash
set verbose
echo -n "What is your name?
Please Enter Here: "
read $name
????? >> /home/my_name/Desktop/testing.txt
fi
unset verbose
The ????? is the part I don't know.
If the file exists, I want to append it and if not, I want this to create it and then write it.
I've lost some of my reference material and am having problems remembering how to do this.
Thanks for any help you can provide...
Bookmarks