Hi,
I am trying to create a script just to study BASH scripting, but I have some problems.
I need to create a script that gets a filename as an argument. The script should behave as follows:
� If the given file name already exists, inform the user and quit.
� If the given file name does not exist, create an empty file by that name and inform the user.
This is my start:
#!/bin/sh
echo "type in a filename:"
read $FILENAME
if
....
else
#filename that does not exist is created
echo "The filename $FILENAME does not exist, creating empty file $FILENAME"
touch $FILENAME