Replaced cat by <
Combined three sed into one using three -e