Skip to content

Instantly share code, notes, and snippets.

@kurahaupo
Created January 7, 2014 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurahaupo/8308796 to your computer and use it in GitHub Desktop.
Save kurahaupo/8308796 to your computer and use it in GitHub Desktop.
Convert absolute symbolic links (those whose target starts with /) to be relative (to their containing directory). Written for Linux, but will work anywhere that has `readlink -m` and `ln -T` (the GNU versions do).
@BarbzYHOOL
Copy link

wtf is it that long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment