What is the python equivalent of grep?

If i want to make function or command like grep in Linux systems using in python ,how can doing it in python

For example if file in directory return true

How can i make it in python ?



Read more here: https://stackoverflow.com/questions/65920698/what-is-the-python-equivalent-of-grep

Content Attribution

This content was originally published by reem_moh at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: