How to an­swer ‘Yes’ for ev­ery ques­tion, au­to­mat­i­cally

OpenSource For You - - TIPS & TRICKS - —Su­mit Ku­mar, sum­[email protected]

If you are tired of press­ing ‘y’ over and over again for a pro­gram in which your an­swer is al­ways ‘y’, you can use the ‘Yes’ com­mand to au­to­mate the process.

Here’s the syn­tax:

yes | <com­mand which needs your an­swer many times> The above com­mand will al­ways pro­vide ‘y’ as the an­swer. If you want to say ‘No’, use the fol­low­ing:

yes n | <com­mand which needs your an­swer many times>

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.