#!/bin/bash select FILE in /etc/logrotate.d/* do [[ $REPLY = q ]] && break [[ $FILE ]] || continue echo "===$FILE===" cat "$FILE" done