Skip to content

Instantly share code, notes, and snippets.

View gkuba's full-sized avatar

Geramie Kuba gkuba

  • United States, UT
View GitHub Profile
@gkuba
gkuba / traceroute_sscript.sh
Created August 10, 2023 18:11
Runs traceroute against a list of IP's and saves the results to traceroute_results.txt
#!/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-------------------------------------"