Guest User

Untitled

a guest
Aug 16th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const data = `1.52.0.0 -- 1.55.255.255
  2.  
  3. 14.0.16.0 -- 14.0.31.255
  4.  
  5. 123.15.0.1 -- 123.15.0.255`
  6.  
  7. data.split('\n').map(item => {
  8.  
  9. const ips = item.split(' -- ');
  10.  
  11. console.log(`
  12.  
  13. edit 1
  14.  
  15.         set start-ip ${ips[0]}
  16.  
  17.         set end-ip ${ips[1]}
  18.  
  19.     next
  20.  
  21. `)
  22.  
  23. })
Advertisement
Add Comment
Please, Sign In to add comment