this script find the given pattern in a file