Skip to content

Instantly share code, notes, and snippets.

@florido
Forked from nrollr/iTunesMediaLocation.sh
Created November 10, 2018 23:43
Show Gist options
  • Save florido/443fccc2bcc194bd8f09e55384b15b99 to your computer and use it in GitHub Desktop.
Save florido/443fccc2bcc194bd8f09e55384b15b99 to your computer and use it in GitHub Desktop.
Retrieve file location of all items in the iTunes Library
#!/bin/bash
# Extract file location of each item from iTunes Music Library.xml (renamed to iTunes.xml)
sed -n 's/.*<key>Location<\/key><string>\([^<]*\)<\/string>.*/\1/p' iTunes.xml > FileLocation.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment