Question: Write Python function to Simulate the following Command. Grep : check if a given file is within a specific directory (including its subdirectories). the function

Write Python function to Simulate the following Command. Grep : check if a given file is within a specific directory (including its subdirectories). the function will take only the file name and full path of a directory General Command Form : Grep Example : Grep , where file name is numbers and directory path is C:\Study\Math\Algebra

NOTE: 1- I don't have the file extension (Find By Name Only). 2- You Can use os library "import os"

 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!