<?php
$files = glob("viewed_step_*.txt");
foreach ($files as $file) {
    $content = file_get_contents($file);
    if (strpos($content, 'futureLocationTS') !== false) {
        echo "=== Found in $file ===\n";
        $lines = explode("\n", $content);
        foreach ($lines as $i => $line) {
            if (strpos($line, 'futureLocationTS') !== false) {
                echo "Line " . ($i + 1) . ": " . trim($line) . "\n";
            }
        }
    }
}
