const sIndex = lines.findIndex( line => line.startsWith( 'Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since' ) );
const eIndex = lines.findIndex( line => line.startsWith( 'ROUTING TABLE' ) );
const C = [...lines].slice(sIndex +1, eIndex).filter( line => line.trim() );
- const R = [...lines].slice(eIndex + lines.length).filter( line => line.trim() );
+ const R = [...lines].slice(eIndex +2, lines.length).filter( line => line.trim() );
console.log('clients: ', C, ' routes: ', R );
const clients = lines.slice( sIndex + 1, eIndex ).map( line => {
const parts = line.split( ',' );