Hi
I am a new user of python and I want to use command.getoutput as follows:
val="/usr1/test/hello/ "
date1 =commands.getoutput('ls -lrt $val | grep "LATEST" | cut -d ">" -f2 | tr -d " "')
My problem is that I want to use "/usr1/test/hello/ " inside the command using variable "val"(Which is already defined above.).
So my query is that what is the syntax for using a variable inside the command.