aibharath has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I need a small help. It would be great if you can provide an answer.
I need to embed one unix system command inside another system command in a single line. I cant use "system" command, but i can only use the charaters (`) and i cant use variables for assigning. Here is how i want :
`echo /tmp/filename.date +%Y%m%d`I want to print the file name which has today's date suffixed to it. I'm not able to expand the inside data command
Hi again, Just found the answer after posting this thread. `echo /tmp/filename.\`date +%Y%m%d\`` Please ignore this thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embed Unix command inside unix command in perl
by Corion (Patriarch) on May 20, 2010 at 14:58 UTC | |
|
Re: Embed Unix command inside unix command in perl
by cdarke (Prior) on May 20, 2010 at 16:51 UTC | |
by Xilman (Hermit) on May 21, 2010 at 06:46 UTC |