Skip to main content
added 198 characters in body
Source Link
Aashu
  • 801
  • 4
  • 16
  • 25

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

EDIT

iI want to call echoecho within system callsystem call.

ftable="echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" "
system(ftable)
error

I have tried with $ but

ftable="echo $'scan" "\'" "LPV" "\'" ",{FILTER => " "\"" "(PrefixFilter (" "\'" "MP1-Eq1" "\'" ")" "\"" "}' '"
system(ftable)
error

Getting an error because of double quote.

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

EDIT

i want to call echo within system call.

ftable="echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" "
system(ftable)

Getting an error because of double quote.

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

EDIT

I want to call echo within system call.

ftable="echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" "
system(ftable)
error

I have tried with $ but

ftable="echo $'scan" "\'" "LPV" "\'" ",{FILTER => " "\"" "(PrefixFilter (" "\'" "MP1-Eq1" "\'" ")" "\"" "}' '"
system(ftable)
error

Getting an error because of double quote.

added 198 characters in body
Source Link
Aashu
  • 801
  • 4
  • 16
  • 25

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

EDIT

i want to call echo within system call.

ftable="echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" "
system(ftable)

Getting an error because of double quote.

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

EDIT

i want to call echo within system call.

ftable="echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" "
system(ftable)

Getting an error because of double quote.

Grammar and clarifications. Shuffling tags for relevance.
Source Link

How do I echo an expression with multipleboth single and double quote expressionquotes?

iI have tried so muchmany things, i ambut I'm new to the shell ,Is. Is it possible to have both multiple double and single quotequotes within echo.an echo?

iI want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call,but i but I am getting an error,because because of the mutiple double and single qoutequotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

howHow can iI write it scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"} ,this? The syntax i cannotis hbase's and I can't change because it wont be accepted by hbase,any help,thanks...

echo with multiple single and double quote expression

i have tried so much, i am new to shell ,Is it possible to have both multiple double and single quote within echo.

i want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call,but i am getting error,because of mutiple double and single qoute.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

how can i write it scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"} ,this syntax i cannot change because it wont be accepted by hbase,any help,thanks.

How do I echo an expression with both single and double quotes?

I have tried many things, but I'm new to the shell. Is it possible to have both double and single quotes within an echo?

I want to generate echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}" for system call, but I am getting an error because of the mutiple double and single quotes.

ftable="echo" " \"" "scan" " " "'LPV',{FILTER => " "\"" "\(" "PrefixFilter ""\(""'MP1-Eq1'" "\)" "\"" "\}" "\" "    
echo "scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}"
bash: syntax error near unexpected token `('

How can I write scan 'LPV',{FILTER => "(PrefixFilter ('MP1-Eq1')"}? The syntax is hbase's and I can't change it...

Tweeted twitter.com/#!/StackUnix/status/473172650366222336
Source Link
Aashu
  • 801
  • 4
  • 16
  • 25
Loading