Hi folks,
forgive my language problems, but I have no idea how else to describe my problem ... ;-)
I think it's best to just show you what I want to do:
I'd like to draw a little ASCII box around some variable outputs. But it's supposed to have a constant size no matter hoe long the output is ...
e.G.
I have to servers:
1) sierra1 (=$SYS)
2) blackbird001 (=$SYS)
The text in the box is being constructed like this:
echo "# System: $sys #"
The First Output would look like this:
############################
# System: sierra1 #
############################
But if I change the server the output looks like this:
############################
# System: blackbird001 #
############################
But I want it to look like this without having to change it manually for each server I have:
############################
# System: blackbird001 #
############################
How can I do this ?
Regards
Thomas
forgive my language problems, but I have no idea how else to describe my problem ... ;-)
I think it's best to just show you what I want to do:
I'd like to draw a little ASCII box around some variable outputs. But it's supposed to have a constant size no matter hoe long the output is ...
e.G.
I have to servers:
1) sierra1 (=$SYS)
2) blackbird001 (=$SYS)
The text in the box is being constructed like this:
echo "# System: $sys #"
The First Output would look like this:
############################
# System: sierra1 #
############################
But if I change the server the output looks like this:
############################
# System: blackbird001 #
############################
But I want it to look like this without having to change it manually for each server I have:
############################
# System: blackbird001 #
############################
How can I do this ?
Regards
Thomas