We can use grep to return the lines with matched words, but how to only return the words?
say there is:
The original MC68000 was fabricated using
how to return MC68000?
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.
This seems to be a frequently asked question. GNU grep has the
-ofor this (show the matchonlynot the entire line). This is not described in The Single Unix Specification.