#!/bin/bash cislo=1 while [ ! $cislo == 32 ] ; do cislo1=$cislo while [ ${#cislo1} -lt 2 ]; do cislo1="0$cislo1"; done; co_mazat_mesic="2018-01-"$cislo1 echo "Budu mazat na celem /home/sfgame tyto soubory :" $co_mazat_mesic find /home/sfgame -name "*"$co_mazat_mesic"-0*" -print0 | xargs -0 rm -f find /home/sfgame -name "*"$co_mazat_mesic"-1*" -print0 | xargs -0 rm -f find /home/sfgame -name "*"$co_mazat_mesic"-20*" -print0 | xargs -0 rm -f find /home/sfgame -name "*"$co_mazat_mesic"-21*" -print0 | xargs -0 rm -f find /home/sfgame -name "*"$co_mazat_mesic"-22*" -print0 | xargs -0 rm -f #find /home/sfgame -name "*"$co_mazat_mesic"-23*" -print0 | xargs -0 rm -f cislo=`expr $cislo + 1`; done #co_mazat_pole="`cat co_mazat | xargs -0`" #cislo=1 #for aktual_mazat in $co_mazat_pole; do #echo $cislo" "$aktual_mazat | sed -e "s/ /\ /g" #echo $cislo" "$aktual_mazat #cislo=`expr $cislo + 1`; #rm $aktual_mazat #done