Is their any way that i can pass variable value of python to my unix command
Note : var is a python variable which stores filename with path
var='/d/demo/f/f.txt'
Want to call var
to my sed command
os.system(bash -c 'sed -i "1i\NAME" var ')
This throws me error at "1i\"
syntax invalid