eBay Interview Question: How to retrieve a file with a... | Glassdoor

Interview Question

Software Engineer Intern Interview(Student Candidate) San Jose, CA

How to retrieve a file with a specific string or keyword

  using UNIX command line
technical, algorithm

Interview Answer

3 Answers


I knew it had some thing to do with grep but was unable to give the specific line.

Interview Candidate on Mar 3, 2014

grep -r "expression to find"

MAT on Mar 24, 2014

find . | grep -i "String"
find is generally used to find the name of the files & Grep is used to search for content present in the file

Shakir Gooty on Apr 11, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.