/ $command = "grep --max-count=200 $escaped_search textfile.txt | awk '{print \"https://\" \$0}'"; error_log($command); $output = shell_exec($command); //check if output is empty if (empty($output)) { echo "No results found. go back and try again."; exit; } //escape output $output = htmlspecialchars($output); // display the results, using map to create href links echo "