$(if grep -q "error" temp_stats.txt; then echo "- Review error logs" echo "- Optimize batch size" else echo "- Transfer completed successfully" fi) EOF
# Generate execution statistics sling conns exec "SELECT COUNT(*), MIN(created_at), MAX(created_at) FROM orders" \ --src-conn postgresql://localhost:5432/db \ --format json > stats_report.json sling cli
sling shifts list --team="Sales Team" --upcoming $(if grep -q "error" temp_stats