Created
February 19, 2026 18:35
-
-
Save mmguero/6fb676b0755a7b0be80304ed61fedfee to your computer and use it in GitHub Desktop.
PCAP file time ranges
This file contains hidden or 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
| for f in *.*; do | |
| IFS=$'\t' read -r start end <<EOF | |
| $(capinfos -a -e "$f" | | |
| awk -F'time:[[:space:]]*' '/time:/{sub(/\..*/,"",$2); print $2}' | | |
| paste -sd $'\t' -) | |
| EOF | |
| jo -n -- "$f=$(jo start="$start" end="$end")" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment