Quantcast
Channel: Best way to insert blocks of HTML in bash - Unix & Linux Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Kusalananda for Best way to insert blocks of HTML in bash

Use a here-document:for f in $files; do cat <<END_HTML<tr class="details"><td> f.$DATE </td><td> f.$APPLIANCE </td><td> f.$HOST </td><td> f.$MDL...

View Article



Answer by zhangjie for Best way to insert blocks of HTML in bash

You can try the "snippets",many text editor or IDE support this feature. You can customize some template for coding block and name it, then you can type the name and tab to expand it to the coding...

View Article

Best way to insert blocks of HTML in bash

I have been working on a script that collects data about servers and formats them into a nice html email report. I have been using sed to replace values in a html template so far and that has been...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images