linux bash the user enters yes or no.

Script script2

 

 

Open the script vim

 

Content is the response to the user's keyboard input

 

 sh run the script, once input is y, once input is n.

 

Guess you like

Origin www.cnblogs.com/zijidefengge/p/12241579.html