Search file matching a given pattern