How can I use the output of a command while while working with sed?
I was facing problems with the following scenario for the last several hours, can anyone help me out?
rm -f /www/emailout/template.html
DBRUN=`ps ax | grep dtd `
sed -e 's/ncTODAY/'"$TODAY"'/g' -e "s/ncdbrun/'"$DBRUN"'/g" /www/emailout/test1.html > /www/emailout/template.html
But, I can't get the output of $DBRUN ?
What would be the solution, can anyone please fix the problem for me?
- Papa's Got a Brand New NAS
- Applied Expert Systems, Inc.'s CleverView for TCP/IP on Linux
- Tech Tip: Really Simple HTTP Server with Python
- Panther MPC, Inc.'s Panther Alpha
- Simplenote, Simply Awesome!
- Returning Values from Bash Functions
- NethServer: Linux without All That Linux Stuff
- CloudBees Jenkins Enterprise
- Jetico's BestCrypt Container Encryption for Linux
- iguazio's Enterprise Data Cloud