parsing like unix