Hello Stephen,
21 Mar 26 10:53, you wrote to Nick Andre:
for i in $(whois -h whois.radb.net -- '-i origin AS15169' | grep
"^route:" | cut -d ":" -f2 | sed -e 's/^[ \t]*//' | sort -n -t . -k
1,1 -k 2,2 -k 3,3 -k 4,4 | cut -d ":" -f2 | sed 's/$//') ;
You might try splitting that big line by using \:
for i in $(whois -h whois.radb.net -- '-i origin AS15169' \
| grep "route:" | cut -d ":" -f2 | sed -e 's/^[ \t]*//' \
| sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 \
| cut -d ":" -f2 | sed 's/$//') ;
That makes things much easier to read and all of that parses into a single line.
-- Sean
... Mountains aren't just funny, they are hill areas.
--- GoldED+/LNX 1.1.5-b20240209
* Origin: Outpost BBS * Johnson City, TN (1:18/200)