I want to convert a plain text formatted as a table into a LaTeX table. I have a routing table I wanted to include in my file but here it is:
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.1.0/24 Direct 0 0 D 10.0.1.1 LoopBack0
10.0.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
10.0.1.255/32 Direct 0 0 D 127.0.0.1 LoopBack0
10.0.12.0/24 Direct 0 0 D 10.0.12.1 GigabitEthernet
0/0/0
I tried manually to create a table but I have to include many like this and it would take too long, I also tried consider it as code using \begin{listing}... \end{listing} but doesn't format well either.
I was wondering if is there was any tool or suggested command.
PS: Also the last line "0/0/0" should be part of the previous one.

&, add a\\at the end of the lines and then add some\begin{tabular}markup that gives the possibility for hand tuning the layout and will give better, more understandable markup and output than an automated generation. – David Carlisle Aug 06 '18 at 08:14