Script to read file and extract data by matching pattern

Thanks pravin..