LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2012, 04:30 PM   #1
oracledb0101
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
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

Thanks
 
Old 06-12-2012, 04:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Code:
echo "Run ('orastart.test');"
Run ('orastart.test');
 
Old 06-13-2012, 10:39 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
1)
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.

2)
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.

http://mywiki.wooledge.org/Arguments
http://mywiki.wooledge.org/WordSplitting
http://mywiki.wooledge.org/Quotes
 
Old 06-13-2012, 06:49 PM   #4
abdul_ahad
LQ Newbie
 
Registered: Jan 2008
Distribution: ubuntu
Posts: 6

Rep: Reputation: 0
i think this is what you want

echo -n 'Run (orastart.test);'
 
Old 06-13-2012, 07:46 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by abdul_ahad View Post
i think this is what you want

echo -n 'Run (orastart.test);'
Can you elaborate on how that produces the output he desired?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo command Micky12345 Linux - General 1 03-01-2012 11:06 AM
Echo Command Dougj75 Linux - Newbie 2 02-28-2012 08:09 PM
echo command vinothaa Linux - Newbie 5 06-05-2010 09:15 AM
Command echo Corrado Linux - Newbie 3 11-11-2009 07:44 PM
echo command s_hcl Linux - General 1 09-06-2006 06:27 AM


All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration