Hello, I currently have the following python code:
#usr/bin/python
import os
variable=raw_input('Search for this string: ')
os.system("grep $variable sample.txt")
Basically what I want to do is to grep a string found in the text file "sample.txt" When I run the code, it just hangs. How can I make it so that grep accepts the variable?