I need to kill the “yes” command after some iterations, two methods:
a) kill it
b) give “n” as an input
after some time
How would you automate the removal of .git directory?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not do “rm -rf .git”? That’s the right way to remove a directory with read-only files.
If you need to use yes for some other reason, here’s how to get 10 ‘y’ followed by an n: