-   Linux - Newbie (
-   -   echo command (

oracledb0101 06-12-2012 04:30 PM

echo command
below is the result when I run the echo:

$echo 'Run (orastart.test);'
Run (orastart.test);

what can I do in order me to get the result as follow:

Run ('orastart.test');

###single tick in front and after orastart.test


Tinkster 06-12-2012 04:56 PM


echo "Run ('orastart.test');"
Run ('orastart.test');

David the H. 06-13-2012 10:39 AM

Please use ***[code][/code] tags*** around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.

Clearly point out the context of your question and the environment. What language is this in, for example? Shell scripting? Perl? What is the purpose of your query?

Please read How To Ask Questions The Smart Way, and provide enough detail in your posts so that readers don't have to guess.

Anyway, assuming the shell, Start with these three links for details on how it handles arguments and quoting.

abdul_ahad 06-13-2012 06:49 PM

i think this is what you want

echo -n 'Run (orastart.test);'

Tinkster 06-13-2012 07:46 PM


Originally Posted by abdul_ahad (Post 4702556)
i think this is what you want

echo -n 'Run (orastart.test);'

Can you elaborate on how that produces the output he desired?

All times are GMT -5. The time now is 08:17 AM.