$cat file|dc-e '0d[?+z1&lt;a]dsaxp'