eBay Interview Question

How to retrieve a file with a specific string or keyword using UNIX command line

Interview Answers

Anonymous

Apr 11, 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

2

Anonymous

Mar 24, 2014

grep -r "expression to find"

1

Anonymous

Mar 4, 2014

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