Last active
November 10, 2018 23:43
-
-
Save nrollr/476d5b1d4def247ac32b to your computer and use it in GitHub Desktop.
Retrieve file location of all items in the iTunes Library
This file contains 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
#!/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
Output in "FileLocation.txt" looks like:
In my case my iTunes Media Folder location is hosted on my Airport Time Capsule in a directory called iTunes, hence the
file:///Volumes/Data/iTunes/
- prefix