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
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
audio::mpd::common::item
Audio::MPD::Common::Item(3pm) User Contributed Perl Documentation Audio::MPD::Common::Item(3pm)NAME
Audio::MPD::Common::Item - a generic collection item
VERSION
version 1.120881
SYNOPSIS
my $item = Audio::MPD::Common::Item->new( %params );
DESCRIPTION
Audio::MPD::Common::Item is a virtual class representing a generic item of mpd's collection. It can be either a song, a directory or a
playlist.
Depending on the params given to "new", it will create and return an Audio::MPD::Common::Item::Song, an Audio::MPD::Common::Item::Directory
or an Audio::MPD::Common::Playlist object. Currently, the discrimination is done on the existence of the "file" key of %params.
METHODS
my $item = Audio::MPD::Common::Item->new( %params );
Create and return either an Audio::MPD::Common::Item::Song, an Audio::MPD::Common::Item::Directory or an Audio::MPD::Common::Playlist
object, depending on the existence of a key "file", "directory" or "playlist" (respectively).
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-04-01 Audio::MPD::Common::Item(3pm)