Thanks so much!! It is working fine now.
In reply to Re^2: split a line by control ^D character by selva in thread split a line by control ^D character by selva