Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ignore = ['duplex', 'alias', 'Current configuration']
  2.  
  3. f = open('config_sw1.txt')
  4. config = f.readlines()
  5.  
  6. for lines in config:
  7. x = lines.rstrip().split('\n')
  8. y = ''.join(x).strip()
  9.  
  10.  
  11. for i in ignore:
  12. if i in y:
  13. continue
  14.  
  15. print(y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement