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
Tags:
technical, algorithm
Answer

Interview Answer

3 Answers

0

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

Interview Candidate on Mar 3, 2014
1

grep -r "expression to find"

MAT on Mar 24, 2014
2

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.