Hello,
I need to build a script to detect some keywords in the command prompt and when of that keywords appears, just execute the command (query, etc...) after a confirmation.
example:
Command -> rm file.ext
Warning -> "sure to rm?"
User input -> yes
If user type yes the command is executed, if not nothing happens.
Any idea?
Many thanks.
I need to build a script to detect some keywords in the command prompt and when of that keywords appears, just execute the command (query, etc...) after a confirmation.
example:
Command -> rm file.ext
Warning -> "sure to rm?"
User input -> yes
If user type yes the command is executed, if not nothing happens.
Any idea?
Many thanks.