>/dev.*5$ Thanks, I don't know what I was thinking. Been looking at this script too long and I wanna go home:) I got it anyway with grep '^/dev.*1$' jlc