Deepak Mahalingam wrote: If posting a reply after 2 months is wrong, I have no idea why the discussion is still open and available:)
Because discussions are open in general. Maybe there is some need to come back to an older
thread.
Anyway, my idea is not to give the exact solution, rather my idea was to give a hint, or idea so that based on the solution provided, the person can build up further.
Yes, and I would consider that a good habit, if better solutions and solutions for the problem mentioned haven't been posted.
Or if you would have introduced your solution with it's advantage: "In case you're interested in searching the subdirs, consider using find like that ..."
your comments like 'line numbers were not needed, ~ searched from home, 'etc. were not very mature. Anyway, I however really loved your point that 'find searches the subdirectories also'. Now, that was a really good point that you had there .
I'm glad to learn here from your mature comments.