can any body give some idea on this..

create one script

That reads a file <file>

Each line of <file> file contains just an account

The run the grep command like below
/usr/xpg4/bin/grep -E -e 'ACCOUNT.*' < File> > <OUTPUT FILE>

read the forum rules
(6) Do not post classroom or homework problems.

[closed regarding the rules, by pressy]