For example I have a file with words
jogging:1 swimming:1 running:1 breathing:1 riding:1 walking:1 jogging:2 seeing:1 seeking:1 looking:1 staring:1 practicing:1 And I want to search the whole file for that word if possible with a loop(for or while) and that word can appear multiple times So it would return this if I needed to search for the word jogging
jogging:1 jogging:2