Re: Quotes within quotes within quotes in bash. :)

2006-06-28 Thread Ross Werner
On Wed, 28 Jun 2006, Stuart Jansen wrote: To paraphrase, we have a close single quote followed by an open double quote - then the single quote, a close double quote followed by another open single quote. Clear as mud. I can't decide if that's evil or genius. Probably both. ~]$ echo 'Stuart s

Re: Quotes within quotes within quotes in bash. :)

2006-06-28 Thread dave
> I can't decide if that's evil or genius. Probably both. Yes, probably: http://howevilareyou.com/us/ --Dave /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */

Re: Quotes within quotes within quotes in bash. :)

2006-06-28 Thread Stuart Jansen
On Mon, 2006-06-26 at 09:31 -0600, [EMAIL PROTECTED] wrote: > perl -e 'print "How'"'"'re you?\n"' > > To paraphrase, we have a close single quote followed by an open double quote > - > then the single quote, a close double quote followed by another open single > quote. Clear as mud. I can't d

Re: Quotes within quotes within quotes in bash. :)

2006-06-28 Thread paul
perl -e 'print "How'"'"'re you?\n"' To paraphrase, we have a close single quote followed by an open double quote - then the single quote, a close double quote followed by another open single quote. Clear as mud. But it works. Paul /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscri

Re: Quotes within quotes within quotes in bash. :)

2006-06-23 Thread plug . org
On Fri, 23 Jun 2006, Kimball Larsen wrote: > ssh -l username some_host_IP '/usr/bin/mysqldump -C -umysqlusername > -pmysqlpassword DBName TableName -w"SomeColumn like `echo -e "\047"`%015`echo > -e "\047"`" >> /tmp/dumpFromRemote1.sql' > > ie, I use `echo -e "\047"` to get me a single quote where

Re: Quotes within quotes within quotes in bash. :)

2006-06-23 Thread Stuart Jansen
On Fri, 2006-06-23 at 16:20 -0600, Kimball Larsen wrote: > What I meant was single quotes within double quotes within single > quotes. You can not have single quotes within single quotes. I don't know enough about mysqldump to know if it will help, but you might want to check out here documents

Re: Quotes within quotes within quotes in bash. :)

2006-06-23 Thread Kimball Larsen
sorry, I should have clarified: On Jun 23, 2006, at 3:52 PM, Nicholas Leippe wrote: On Friday 23 June 2006 15:42, Kimball Larsen wrote: Then you get quotes within quotes within quotes - which bash disallows. How is it disallowed? As long as the data is properly escaped/ encoded, you shou

Re: Quotes within quotes within quotes in bash. :)

2006-06-23 Thread Nicholas Leippe
On Friday 23 June 2006 15:42, Kimball Larsen wrote: > Then you get quotes within quotes within > quotes - which bash disallows. How is it disallowed? As long as the data is properly escaped/encoded, you should be able to pass anything. echo "\"a\"" sh -c "echo \"\\\"a\\\"\"" sh -c "sh -c \"e

Quotes within quotes within quotes in bash. :)

2006-06-23 Thread Kimball Larsen
So, I'm writing a fairly nasy java app that needs to do some dumping of mysql data from many remote sources. I know I could do this internally with the mysql drivers for java, but I feel it is faster, easier, and more reliable if I just drop out to a shell and run mysqldump directly. Now,