LinkedIn Interview Question

How do you search thrgough huge flatfile?

Interview Answers

Anonymous

Apr 10, 2011

You can search using 1. Regex by giving a pattern or a string. 2. Read line by line and then take each line and parse all the tokens in the line and check each token is the required token or not.

2

Anonymous

Mar 19, 2012

we can use Regular expression search on the file - by Unix command grep

Anonymous

Feb 14, 2011

Is there a better way than chunking? can you use a database?