Try to use ed -v