use sed and awk found the useful part