Jan-25-2023, 04:30 AM
Hi Team,
how to print all files which contains specific word in files.
how to concat source path and word to search for.
how to print all files which contains specific word in files.
how to concat source path and word to search for.
import glob
SOURCE_PATH = r"E:\data\src"
with open(r'E:\data\mobile_list.csv','r') as f:
reader = csv.reader(f)
header = next(reader)
for m in reader:
files = glob.glob(SOURCE_PATH+r'\'+ f'*{m}*')
