|
|
Analysis
Kewl hint! However, I'm a junky for understanding all of the innards of commands and scripts and being clear on exactly what they do. Here's my interpretation of this command (with a bunch of holes that I hope kind folks can fill in for me so I can learn!):
% netstat -f inet -n | grep '.548 ' | awk '{ print $5 }' | sed 's/.[^.]*$//' netstat -f inet -n show statistics only for the 'inet' address family and display network addresses as numbers grep '.548 ' find the instances where connections are made to the apple file sharing port awk '{ print $5 }' scan for the fifth element and print it sed 's/.[^.]*$// change the output somehow (I'm not sed fluent at all)
Analysis
> sed 's/.[^.]*$// |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|