Difference between revisions of "Bash indent"
Jump to navigation
Jump to search
(Created page with "``` export HAPROXY_CONFIG=$(cat dev.haproxy.cfg) # export HAPROXY_CONFIG=$(indent() { sed 's/^/ /'; }; echo -n "$HAPROXY_CONFIG" | indent) # export HAPROXY_CONFIG=$(echo -e "...") |
|||
Line 1: | Line 1: | ||
``` | ``` | ||
export HAPROXY_CONFIG=$(cat dev.haproxy.cfg) | export HAPROXY_CONFIG=$(cat dev.haproxy.cfg) | ||
− | + | export HAPROXY_CONFIG=$(indent() { sed 's/^/ /'; }; echo -n "$HAPROXY_CONFIG" | indent) | |
− | + | export HAPROXY_CONFIG=$(echo -e "|\n$HAPROXY_CONFIG") | |
``` | ``` |
Latest revision as of 22:49, 7 January 2023
export HAPROXY_CONFIG=$(cat dev.haproxy.cfg) export HAPROXY_CONFIG=$(indent() { sed 's/^/ /'; }; echo -n "$HAPROXY_CONFIG" | indent) export HAPROXY_CONFIG=$(echo -e "|\n$HAPROXY_CONFIG")