#!/bin/bash echo "=== Summary of new dimensions across all list types ===" echo "" for file in hot cart new global; do echo "【${file}】:" p1=$(grep -E "^platform:(essa|essaone);country_code:" /home/tw/recommendation/offline_tasks/output/interest_aggregation_${file}_20260113.txt | wc -l) p2=$(grep -E "^platform:(essa|essaone);country_code:.*;customer_type:" /home/tw/recommendation/offline_tasks/output/interest_aggregation_${file}_20260113.txt | wc -l) echo " Platform+Country: $p1" echo " Platform+Country+CustomerType: $p2" echo "" done