Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
kageru
/
mv3u
Last active
Feb 15, 2018
Star
0
Fork
0
Star
Code
Revisions
2
Embed
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Download ZIP
A simple script to move/rename a file/folder and change m3u playlist entries accordingly. Portmanteau of mv and m3u
Raw
mv3u
#!
/bin/bash
#
Move/rename a file/folder and change all m3u playlists in $playlists accordingly
#
Usage:
#
$ mv3u old_filename "new filename"
#
change this
playlists=
'
/path/to/your/playlists
'
src=
"
$1
"
dst=
"
$2
"
mv
"
$src
"
"
$dst
"
perl -p -i -e
"
s?\Q
$src
\E?
$dst
?
"
$playlists
/
*
.m3u
Sign up for free
to join this conversation on GitHub
. Already have an account?
Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.