Remove cut, use bash expressions