in reply to
Help regarding an alogrithm
- Read file "data.txt" line by line. Every line has name of a directory.
- Find all the *.c files in current directory and run a loop on these files
- Inside above loop read every line of current (*.c) file and run a regular expression to match "modem" case-insensitively with word boundary.
- If any of the match (in case of multiple matches) is not equal to (eq) "modem" print the line and file (*.c) name
I hope this helps