I have written a query:
function print_ui_hosts { local sql = "select ........." print_sql "$ sql" }
local sql - a very long string. Query is not formatted. How can I split a string into multiple lines?
simply insert new line where necessary
sql=" SELECT c1, c2 from Table1, Table2 where ... "
shell will be looking for the closing quotation mark
2.1m questions
2.1m answers
60 comments
57.0k users