My required output is :
'grep "key\":\"value" test_File.txt'
for example, what i tried is..
>>> cmd = 'grep "key\":\"value" test_File.txt'
>>> cmd
'grep "key":"value" test_File.txt'
but it prints two slashes when i try to escape the actual slash.
>>> cmd = 'grep "key\\":\\"value" test_File.txt'
>>> cmd
'grep "key\\":\\"value" test_File.txt'
>>>
all i need is ,how can i get the first line as output ?