3 ms·
I have not heard of yes. It sounds like it just repeats a string infinitely. What would be a common use case? Or is it intended to be a lego brick for bigger co
by quickthrower2 4y ago
I have not heard of yes. It sounds like it just repeats a string infinitely. What would be a common use case? Or is it intended to be a lego brick for bigger composed commands?
- Macha 4y agoYou pipe it as standard input to a command that asks you lots of yes/no questions on the command line to save on typing yes repeatedly. A lot of tools have their own command line flag to do this, e.g. apt-get has -y or --assume-yes
- gspr 4y agoIn addition to actually answering interactive prompts, it can be useful to test software that reads and processes stdin.