complete flow possible?!
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
#cd /run/media/felix/AE7E01B77E01797B/pDNS;
|
||||
cd /home/felix/sources/MastersThesis/src/DoresA/data;
|
||||
month="04"
|
||||
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)
|
||||
|
||||
for i in {01..31}; do
|
||||
if compgen -G *"2017-$month-$i"* > /dev/null; then
|
||||
echo -n -e "day $i \t size: ";
|
||||
echo -n -e $(du -ch *"2017-$month-$i"* | tail -1) " \t #files: ";
|
||||
ls *"2017-$month-$i"* | wc -l;
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user