I am writig this script and usually I have prompts like:
echo "Enter file name: "
So later when I want verify the name to something I can:
if [ "$filename" = "penski" ]
echo "Hello $filename"
Anyways how is this done without prompting for example:
I have a script that manages files, but when running the program you type this at the command line:
where mynewfile is a file in my dir and file is the name of the script:
Becuase I need my script to say whether this is a valid file in my dir.