Last active
January 5, 2017 22:27
-
-
Save mpontillo/87f5317e03adf341c5fdbbb28740b65d to your computer and use it in GitHub Desktop.
Shell snippet to list symlinks and then sort by link destination. (Useful for looking at /dev/disk and other things.)
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
find "$1" -type l | xargs ls -ln | awk '{ print $9, $10, $11 }' | sort -k2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment