perl -ne 'print if / dev$/ .. / manage$/' < file