Pergunta de entrevista da empresa IBM

how to write a script for extracting specific pattern in flat file.