Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
"fav2dir: copy mpd favorite songs (or any playlist) to DEST:" "###### START:" "Seperator (Internal Field Separator)" IFS=' ' "###### PARAMETER:" PLAYLIST="/home/user/MyPlaylists/Favorites.m3u" MPDMUSICDIR="/home/user/MyMusic/" DEST="/home/user/MyFavoriteSongs/" "###### COMMANDS:" mkdir --parents $DEST$MPDMUSICDIR
for TITLE in $(cat $PLAYLIST) ; do cp -a --parents -u -v "$MPDMUSICDIR$TITLE" "$DEST" done "###### END"
Usage:
Edit fav2dir.sh: set the 3 PARAMETER in fav2dir for your system. (For speed reason it could be wise to have DEST on another disk as MPDMUSICDIR)
make fav2dir.sh executable
Run fav2dir.sh.
4a. Move/copy your favorite music in DEST to your mounted mp3player, and/or 4b. Move/copy your favorite songs in DEST to a backup medium.
Log in to post a comment.
"fav2dir: copy mpd favorite songs (or any playlist) to DEST:"
"###### START:"
"Seperator (Internal Field Separator)"
IFS='
'
"###### PARAMETER:"
PLAYLIST="/home/user/MyPlaylists/Favorites.m3u"
MPDMUSICDIR="/home/user/MyMusic/"
DEST="/home/user/MyFavoriteSongs/"
"###### COMMANDS:"
mkdir --parents $DEST$MPDMUSICDIR
for TITLE in $(cat $PLAYLIST) ; do
cp -a --parents -u -v "$MPDMUSICDIR$TITLE" "$DEST"
done
"###### END"
Last edit: sposkpat 2014-01-27
Usage:
Edit fav2dir.sh: set the 3 PARAMETER in fav2dir for your system.
(For speed reason it could be wise to have DEST on another disk as MPDMUSICDIR)
make fav2dir.sh executable
Run fav2dir.sh.
4a. Move/copy your favorite music in DEST to your mounted mp3player, and/or
4b. Move/copy your favorite songs in DEST to a backup medium.
The songs already in DEST will not be overwritten.
Last edit: sposkpat 2014-02-20