#!/bin/bash files=( "/path_to_example1.com/config/sphinx.conf" "/path_to_example2.com/config/sphinx.conf" ) for i in "${files[@]}"; do if [ -f "$i" ]; then cat "$i"; fi done cat <