Using dd to extract data