put the original folder together with the dir name together and sort base on the 2nd field.
Code:
sep="|"
while read d
do
# get rid of the trailing /
dd=${d%/}
# print the orginal and dirname, separated by a "|" (hopefully no "|" in the folder name
echo "$d$sep${dd##*/}"
done < /mnt/user/Music/_Playlists/Rock.m3u | sort -t"$sep" -k 2 | cut -d"$sep" -f1
Thanks! I think this is almost what I need. I'm a little confused about what "while read d" does (I'm very much a bash noob who uses Google extensively to program). I'm hoping to add some lines to my code which will look for any m3u files in my $PlaylistDIR (the ones that my script just created - currently set to /mnt/user/Music/_Playlists/), and sort them all one by one using your code.
How would your code need to be altered for that to work?
Hi guys i have written a script which takes the options given to him and execute itself accordingly.
for example
if a script name is doctortux then executing doctortux without option should made doctortux to be executed in automatic mode i.e. doctortux -a
or if a doctortux is needed to run in... (4 Replies)
Hi, I hope I am posting in the right place.
I use to stream to justin tv using ffmpeg with that command
ffmpeg -re -i "path/to/input.avi" -vcodec libx264 -preset fast -crf 30 -acodec libfaac -ab 128k -ar 44100 -f flv rtmp://live.justin.tv/app/xxxxxxxxxxx
I would like to know if a bash... (2 Replies)
Hi.
Please help with a single line bash that will match field 3, and field 2 , if not then echo "Not Found".
Original Music List name; Musiclists.m3u
Format:
\Music\The Rolling Stones - Angel.mp3
\Music\Maroon 5\Moves Like Jagger.mp3
Make a groomed playlist variable...
$... (0 Replies)
Hi.
I'm working on showing the video player to new users with under 5 posts which shows only videos like the ones below, which are related to the forums, how to use the forums, code tags, usercp, etc.:
https://www.unix.com/members/1-albums215-picture1265.png
or maybe something minimal and... (5 Replies)
Discussion started by: Neo
5 Replies
LEARN ABOUT DEBIAN
bluemindo
bluemindo(1) General Commands Manual bluemindo(1)NAME
bluemindo - simple yet powerful audio player
SYNOPSIS
bluemindo [options]
DESCRIPTION
This manual page documents briefly the bluemindo command.
bluemindo Bluemindo is a really simple but powerful audio player in Python/PyGTK, using GStreamer. It can downloads albums or artists pic-
tures and lyrics as doing desktop notifications or sending music to your Last.fm profile or on your Jabber account (via PEP).
You can also choose the view mode: lightweight (very simple way to use the player: you only have a playlist), basic (you have a tree of
artists>albums and a playlist), normal (the most usual mode for audio players), full (you have a list of artists and saved playlists, a
list of albums covers by artists and the playlist) or albums.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below. For a complete description, see the Info files.
-h, --help
Show summary of options.
--current
Show the current playing song artist, title and album.
--current-cover
Show the path to the album cover of the current playing song.
--current-lyrics
Show the lyrics for the current playing song.
--playpause, --play, --pause
Play or pause the song.
--stop Stop the song.
--previous
Jump to the previous song in playlist.
--next Jump to the next song in playlist.
--volume-more [ STEP ]
Increase the volume, you can specify a step (0 > 100).
--volume-less [ STEP ]
Decrease the volume, you can specify a step (0 > 100).
--volume=VOLUME
Set the volume: 0 > 100.
--reload
Reload the songs from your music folder.
--quit, --plunge
Quit Bluemindo.
AUTHOR
bluemindo was written by Erwan Briand <erwan@codingteam.net>.
This manual page was written by Thibaut GIRKA <thibaut.girka@gmail.com>, for the Debian project (but may be used by others).
June 22, 2008 bluemindo(1)