I currently have
$ echo "`echo "use joomla; describe jos_content" | mysql --batch -u root -ppassword`"
and I would expect output that starts like this
Field\tType\tNull\tKey\tDefault\tExtra\n
but instead I get
Field Type Null Key Default Extra
I have tried all sorts of items at the moment. I could use mysql –html and sed, but, I would only like to go there if this doesn’t work out.
thanks!
sedis the right tool for this job, notecho.Or if you really want all of the output on one line:
(note the quadruple escape in the
sedcall).