brianspilner01 / media-server-scripts

84 stars 18 forks source link

Suggestion: Ask for user input #5

Closed scda360 closed 3 years ago

scda360 commented 3 years ago

Hey Brian,

I really like Sub-clean.sh, however it sometimes removes too much lines

Is it possible to add an option to ask for the user input/interations before deleting the line?

Ex: The following line matches the Regex Search: "lorem ipsum ..... " Would you like to remove it? Y/N

brianspilner01 commented 3 years ago

I added a separate script for you (sub-clean-interactive.sh), as modifying the current one would make automating the script more difficult. In the future these could possibly be merged perhaps with a flag such as --interactive but I think given the scope, this will suffice.