Is it possible to process a multiline variable in a bash function? Suppose I have a function theone
and I pass a multiline variable to it.
var="
This
is a
multiline
variable"
theone "$var"
I want to colour specific lines from var
according to some matching pattern without using awk
or sed
.