---

More Fun With Bash Quoting

“…case in point: trying to script the updating of a field in a
mysql table when the field to be changed contains quote
characters.

“Let’s imagine we have a simple table with the following data
and we would like to change the name field:

+----+----------------------+---------------------+
| id | name                 | create_date         |
+----+----------------------+---------------------+
|  1 | name 'with' "quotes" | 2009-11-19 08:48:59 |
+----+----------------------+---------------------+

“Your first script might look something like this:”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis