Sometimes, I use group grep to do an extensive search that might take a few minutes. Is there an option in grep that would allow me to find out how much time grep took to complete the query? Thanks.
Share
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.
Not built into
grep, but you can wrap it with thetimecommand on most Unix-ish systems.The
realtime is probably the one you want to look at.