I have a simple bash script wich works fine when running in command line, but not in crontab:
#!/bin/bash
PATH=/usr/bin:/bin
for f in /data/home/cwolff/tmp/*access_log*.txt;
do
egrep "r:[A-Z]+ \S+[^\.\s]{5} " $f >> $f.min
done
When running in crontab it outputs empty *.min files. I read about some character like % need to be escaped in crontab, but I'm not using any of them.