Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor formatting error on Fedora 27 #3

Open
JamesReynolds opened this issue May 17, 2018 · 0 comments
Open

Minor formatting error on Fedora 27 #3

JamesReynolds opened this issue May 17, 2018 · 0 comments
Assignees

Comments

@JamesReynolds
Copy link

+----------------------------+    +----------------------------+
| SOURCE HOST                |    | DESTINATION HOST           |
| IP:   xxxxxxxxxxxxx        |    | IP:  xxxxxxxxxx            |
| ARP:  xxxxxxxxxxxxxxxxx    || ARP:  xxxxxxxxxxxxxxxxx    |    |                            |
+----------------------------+    +----------------------------+
                  |                             |
                  |               +----------------------------+
                  |               | ROUTER TOWARDS DESTINATION |
                  |               | IP:   xxxxxxxxxxxxx        |
                  |               | ARP:  xxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx|
                  |               +----------------------------+
                  |                             |               
            --+---+-----------------------------+---
                  |
...

Looks like src_gateway_arp is coming out as:

"xxxxxxxxxxxxxxxxx\n
xxxxxxxxxxxxxxxxx"

so changing to:
printf '| ARP: %-18s |' "${src_gateway_arp:0:17}"
works.

@ocochard ocochard self-assigned this Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants