use single line sed command to parse needed fields