Guest_imported
New member
- Jan 1, 1970
- 0
Hi All,
Here's a quick question for you from a lowly DBA who knows very little about shell scripting!
I've got a script that accepts a filename, then does various things to the files. I just want to add a bit in the front where it will read in a Y or N from the operator. If they type in Y it should just carry on with the script, if it's an N then it should simply exit.
Any suggestions on syntax I can use to achieve this?
Thanks,
Simon
Here's a quick question for you from a lowly DBA who knows very little about shell scripting!
I've got a script that accepts a filename, then does various things to the files. I just want to add a bit in the front where it will read in a Y or N from the operator. If they type in Y it should just carry on with the script, if it's an N then it should simply exit.
Any suggestions on syntax I can use to achieve this?
Thanks,
Simon