TEXT   186
os chdir
Guest on 5th December 2024 02:12:34 PM


  1. import os
  2. os.chdir('E:\\f5_automation')
  3. r = open('E:\\f5_automation\\uat.list.cmd.txt')
  4. #print(r.read().replace('\n', ''))
  5. t = r.read().split('\n')
  6. for i in range(len(t)):
  7.     if ('inherited' or 'device-group' or 'partition' or 'template' or 'traffic-group') in t[i]:
  8.         t.pop(i)
  9.         print(i,t[i])

Raw Paste

Login or Register to edit or fork this paste. It's free.