I am trying to read all the log files in a directory and output the content (appending the file name in front of each line) into a master log file. I am getting this error while the script runs:
echo: write error : Disk quota exceeded
below is my code
MasterLog=/home/did/masterfile.log
for file in /home/logs/*.log
do
while read line;
do
echo ${file%%.*} ${line} >> $MasterLog
done<${file}
done
echo "done"