34
bash - bypass Yes/No in Shell Script - Stack Overflow
source link: https://stackoverflow.com/questions/25113505/bypass-yes-no-in-shell-script
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
up vote 5 down vote accepted
If you just need to answer "Yes" to everything, you can use
yes Yes | ./ittp-update.sh
How this works:
The program yes prints the string you give it (or "y" if you don't give it anything, since this is the default way to give a positive answer in *nix programs) repeatedly on standard output until it receives SIGPIPE. The pipe (|) connects standa
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK