I need to use 2 variables with for condition. For example,
cat days
01072017
02072017
03072017
cat hours
00:00
01:00
02:00
03:00
my shell script sample
for i in `cat days` & j in `cat hours`
do
cat file | grep $i $j >data-$i-$j
done
I want an output of 3 days * 4hours = 12 files redirected with corresponding data-day-hour