I need to use the grep command to search for a pattern in a text file. But I'm on Windows so how do I do that? Oh and I have to use python.
My teacher said we have to input something like
grep "Hello" file.txt
in Python's shell.
But base on what I found in the internet, that should be inputted in Linux's terminal. I asked our teacher about it but he said I should just look for it on YouTube :(
I really don't have any idea how to do this and where to start. Please help me!
EDIT: I used re.search to do the same thing before but my teacher won't accept it. I really have to use grep!
If anyone has any idea how that is possible please tell me