17 lines
489 B
Bash
Executable File
17 lines
489 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd /run/media/felix/AE7E01B77E01797B/pDNS;
|
|
#cd /home/felix/sources/MastersThesis/src/DoresA/data;
|
|
month="10"
|
|
machine="sgsgpdc0n9x" # set empty for all (sgsgpdc0n9x|usmlvdc010x|demchdc902n)
|
|
|
|
echo "$machine"
|
|
for i in {01..31}; do
|
|
if compgen -G *"$machine-2017-$month-$i"* > /dev/null; then
|
|
echo -n -e "day $i \t size: ";
|
|
echo -n -e $(du -ch *"$machine-2017-$month-$i"* | tail -1) " \t #files: ";
|
|
ls *"$machine-2017-$month-$i"* | wc -l;
|
|
fi
|
|
done
|
|
|