View previous topic :: View next topic |
Author |
Message |
alexthelion n00b
Joined: 07 Dec 2003 Posts: 8
|
Posted: Sat Dec 13, 2003 12:32 pm Post subject: Need help with batch-linking |
|
|
Hi,
I would like to do the following: link all *.m3u files in /windows/D/Eigene\ Dateien/My\ Music (including subdirectories) symbolically to files with the same name in /home/myname/Playlists.
Does anybody know how I can automate this? Thanks! |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sat Dec 13, 2003 12:43 pm Post subject: Re: Need help with batch-linking |
|
|
alexthelion wrote: | I would like to do the following: link all *.m3u files in /windows/D/Eigene\ Dateien/My\ Music (including subdirectories) symbolically to files with the same name in /home/myname/Playlists. |
Code: | cd /home/myname/Playlists
for f in /windows/D/Eigene\ Dateien/My\ Music/*.m3u; do
ln -s $f
done |
That's it |
|
Back to top |
|
|
alexthelion n00b
Joined: 07 Dec 2003 Posts: 8
|
Posted: Sat Dec 13, 2003 1:07 pm Post subject: |
|
|
Cool. ln -s /windows/D/Eigene\ Dateien/My\ Music/*/*.m3u /home/hunzikea/Playlists/
works, too. It' just a pity that neither XMMS, Totem, beep nor Rhythmbox accepct those links as playlists. |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sat Dec 13, 2003 1:52 pm Post subject: |
|
|
alexthelion wrote: | It' just a pity that neither XMMS, Totem, beep nor Rhythmbox accepct those links as playlists. |
Take a look into the m3u files. I guess they contain windows paths like D:\Eigene Dateien\My Music\. |
|
Back to top |
|
|
alexthelion n00b
Joined: 07 Dec 2003 Posts: 8
|
Posted: Sat Dec 13, 2003 2:49 pm Post subject: |
|
|
Quote: | I guess they contain windows paths like D:\Eigene Dateien\My Music\. |
No, that's not the problem. All my Playlists are in the same directory as the Music files and contain no absolute paths. The problem is more that either the software doesn't accept links as playlists, doesn't accept playlists at all or does the relative path search from the linked file.
Any idea how to get correct playlists in my home directory? |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sat Dec 13, 2003 3:56 pm Post subject: |
|
|
Linux is case-sensitive, while Windows is not. Maybe this is the problem. Check how Linux sees the files and compare them with how they are written in the playlists. |
|
Back to top |
|
|
|