[GTALUG] capturing the output of any program and inserting in db

Jamon Camisso jamon.camisso at utoronto.ca
Wed Oct 29 18:07:04 UTC 2014


On 2014-10-29 1:50 PM, Myles Braithwaite wrote:
> Jamon Camisso wrote:
>> Better, but what about:
>>
>> MESSAGE="foo\u003B DELETE FROM log\u003B"
> 
> Does bash support unicode characters now? Cause it seems to be working fine:
> 
> 3|2014-10-29 17:44:41|foo\u003B DELETE FROM log\u003B
> 
> Is there a Python like `u` for bash?

Not sure: if I echo $CLEAN_MESSAGE though I see the ; with \u003B or
\x3B characters. When you run the insert in sqlite does it interpret the
characters as literal strings again?


More information about the talk mailing list