I have a folder with many folders in it and in those folders there are more folders and so on. somewhere in this tree there are files (text files). One of these files contain "find me". I need to find the path of that file. In bash and python (one code for each language).
Of course I don't want you to solve this challenge for me so i have some questions (all the questions are about the two languages):
- How do I go over all of the files and directories in a certain directory?
- If I got a file/directory path, how can I tell if this path is for a file or for a directory?
- (only for bash) How can I read a file content and check if it contains "find me"?