for serv in folders [ folder ] if True in [ x > - 1 for x in [ line. find ( folder ) for line in lines ] ] else "" :