This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Output file for traceroute results | |
output_file="traceroute_results.txt" | |
# Function to run traceroute and save results | |
run_traceroute() { | |
local ip="$1" | |
local output=$(traceroute -n "$ip") | |
echo -e "\n-------------------------------------" |