On Nov 17, Andrea Holstein said:
>Ken Clark wrote:
>>
>> I want to capture the title of the current song I have running on my box
>> through mpg123 and redirect it to a file. In this process, I don't want
>> the /long/path/to/song but just the song.mp3. Is it possible to capture
>> the song titl
Ken Clark wrote:
>
> I want to capture the title of the current song I have running on my box
> through mpg123 and redirect it to a file. In this process, I don't want
> the /long/path/to/song but just the song.mp3. Is it possible to capture
> the song title this way?
>
Hi, another way is:
my (
> I want to capture the title of the current song I have running on my box
> through mpg123 and redirect it to a file. In this process, I don't want
> the /long/path/to/song but just the song.mp3. Is it possible to capture
> the song title this way?
I haven't used it, but you might want to che
On Fri, 16 Nov 2001, KeN ClarK wrote:
> I want to capture the title of the current song I have running on my box
> through mpg123 and redirect it to a file. In this process, I don't want
> the /long/path/to/song but just the song.mp3. Is it possible to capture
> the song title this way?
>
> Ken
If you mean can I get only the filename, yes. You could use File::Basename or
use something like this:
$filename= '/a/b/c/d/e/song.mp3'; # hold your fully qualified f
$filename=~ s/^.+[\\\/]//;
# now holds song.mp3
I use this for display purposes of the script