$ netstat -nr
is great for outputting the Mac OS X IP routing tables.
However its output is long as it contains both IPv4 and IP6 routing tables.
Sometimes I wish to output only the IPv4 routing table. I wish to use short terminal command to only see the IPv4 routing table.
My best result is $ netstat -nr | sed -e '1,3d;/Internet6:/,$d;/^$/d'
Can this command be shortened?
man
pages. Luckily I have asked and that the question is still not deleted, so I can find the answer again.