Ask For Input Until Y Or N Pressed

1. notes

  • note that without -s you would get a line of output such as
Are you sure (Y/N)? abdsdvcy
yes

Infrastructure Support Engineer/Technical Writer (Snowplow Analytics) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Should you still write custom CSS in 2021?

Property to YAML File Conversion Using MuleSoft

Leetcode#997. Find the Town Judge

Mutating const variables

Typescript Fundamentals

How to Build / Compile Gutenberg JavaScript

A gentle Introduction to Ajax.

Asterisk (*) and square brackets [] on Angular directives — when to use them

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavol Kutaj

Pavol Kutaj

Infrastructure Support Engineer/Technical Writer (Snowplow Analytics) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

More from Medium

Removing Substring In Bash With Parameter Expansion

About Command Linux Shell

Linux: how to add a filesystem to fstab the right way

Ubuntu Ethernet Configuration