Linux
Read MP3 ID3 Tags in Perl
by Andrew on Dec.03, 2009, under Linux, Perl, Programming
The package I use for simple tag reading is MP3::Tag, available on CPAN with more information here.
The following example shows how easy it is to retrieve tags from an MP3 file.
use MP3::Tag; my $file = MP3::Tag->new($filename); my ($title, $track, $artist, $album, $comment, $year, $genre) = $file->autoinfo(); print "Title: [$title]\n"; print "Artist: [$artist]\n"; print "Album: [$album]\n"; print "Track: [$track]\n"; print "Year: [$year]\n"; print "Genre: [$genre]\n"; print "Comment: [$comment]\n\n";
SCP files with spaces in them
by Andrew on Nov.27, 2009, under Linux
Right, I’m sure we’ve all come across this probem before. You try use SCP to copy a file but it has spaces in the filename or directory name. Well obviously one solution is not to use spaces in filenames or directory names! But some of you lot do, so, try the following:
scp user@host:"'filename with spaces'" destination
Yes, that’s with more quotes!
" + ' + filename with spaces + ' + "