I have the following simple script:
echo "-------------------------- SOA --------------------------------"
echo " "
echo -n " ---------> "; dig soa "$1" +short | awk '{print $3}'
The output is something like this:
-------------------------- SOA --------------------------------
---------> 2019072905
Now my question is can I make an "echo" command after the dig and the output to be something like this:
-------------------------- SOA -----------------------------
---------> 2019072905 <-------------
I have tried to search for similar cases but was not able to find any related.
Would this be possible?
Thanks in advance.