#!/bin/bash # Lista todos os arquivos .qmailecho "" > /root/listaQmail.log for i in `ls /home/remote` do EMAIL=`cat /home/remote/$i/.qmail` echo "$i" >> /root/listaQmail.log echo $EMAIL >> /root/listaQmail.log echo " " >> /root/listaQmail.log done clear echo "Arquivo gerado em /root/listaQmail.log" |