html - printf span long command over multiple lines -


Is it possible for long printf commands spread over many links?

My command is something like that, and I would like it to be more readable. The breaks are there because it is the only part of the awk block.

  select sqlite3 -noheader-column database.db "* tbl_a range from $ range *" | \ Awk 'BEGIN {FS = "|"; } {Printf "\ t \ t & lt; tr & gt; \ n \ t \ t \ t & tt; td class = \" d \ "& gt;% s & lt; / td & gt; \ n \ T \ t \ t    

in awk , you can line-string several Continuity character to split into lines.

  sqlite3 -noheader-column database.db "Select * to tbl_a limit $ limit" * | Awk 'BEGIN {FS = "|"; } {Printf "\ t \ t & lt; tr & gt; \ n \ t \ t \ t & tt; td class = \" d \ "& gt;% s & lt; / td & gt; \ n \ T \ t \ t   

or, awk , you can process sqlite line-by-line output in bash Are: Select / P>

  sqlite3 -noheader-column database.db "/ t / l_a from border limit $ *; IFS = '|' Read Col1 col2; Print '\ t \ t & lt; tr & gt; \ t \ t \ t & tt; td square = "d" & gt;% s & lt; / td & gt; \ t \ t \ T & lt; td class = "m" & gt;% s & lt; / td & gt; \ t \ t & lt; / tr & gt; \ n '"$ col1" "$ col2". Vim -    

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -