10-19-2006
Thanks for the info. It seems strange -- I guess I could use it to track a list of variables for some user-defined purpose, but considering there are zillions of other ways to do something like that... ok. Thanks again, though.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have problem understanding shell script.Written that
$bindir/put_load.ksh ; typeset RV= $?
I dont have any other document about script. How can i find that $bindir is exist or not what is the content of that, i am working on new box . how can i search that in old box what... (4 Replies)
Discussion started by: sam71
4 Replies
2. Shell Programming and Scripting
I have found this command *typeset* and the option * -f *, which should provide me the list of all the currently defined functions. Is there any possibility of specifying the file in which this command to search ? (1 Reply)
Discussion started by: xinfinity
1 Replies
3. Shell Programming and Scripting
Can anyone show me a simple practical usage of typeset. (1 Reply)
Discussion started by: balaji_prk
1 Replies
4. Shell Programming and Scripting
Hi,
Could any one please explain about typeset or share any link from where i can study about typeset i.e how to use it, how to define it.. etc?
Thanks-
Yogi (3 Replies)
Discussion started by: bisla.yogender
3 Replies
5. UNIX and Linux Applications
Hi All ,
Can any one help me the meaning of typeset -r
Thanks,
venkat (1 Reply)
Discussion started by: venkatakotiy
1 Replies
6. Shell Programming and Scripting
Hi,
typeset -l sgf # all lowercase letters
typeset -u SGF # all uppercase letters
sgf=$1
SGF=$sgf
these lines used in my scripts . It ran fine in ksh but when we convert this to bash it erroring out.
I like to know what the use of typeset ??
Thanks & Regards
kanagaraj (3 Replies)
Discussion started by: kanagaraj
3 Replies
7. Shell Programming and Scripting
Hi all,
Am trying to convert a script written in ksh to a bash shell.
At the moment, am stumped with the typeset -u command and I can't find an equivalent of it in bash.
integer function is also not working as is the following if statement
if ] && ]; then
continue
fi
Is... (3 Replies)
Discussion started by: newbie_01
3 Replies
8. Shell Programming and Scripting
Hi,
All the scripts we have here use typeset instead of normal variables.
They don't have any parameters, they just get declared at the beginning of the scripts like this: typeset var1 var2 var3Could anyone tell me why this is done? I don't see the advantage in this over using normal variables. (1 Reply)
Discussion started by: Subbeh
1 Replies
9. Shell Programming and Scripting
I'm getting different behaviors for "typeset -i" on different systems. In one case unset parameters are 0, and in another case they're empty. Is one of these behaviors correct, or is the behavior here unspecified?
First system:
$ typeset -i x
$ print $x
0
$ print ${.sh.version}
Version M... (13 Replies)
Discussion started by: Matt Miller
13 Replies
LEARN ABOUT DEBIAN
mp3::tag::cddb_file
MP3::Tag::CDDB_File(3pm) User Contributed Perl Documentation MP3::Tag::CDDB_File(3pm)
NAME
MP3::Tag::CDDB_File - Module for parsing CDDB files.
SYNOPSIS
my $db = MP3::Tag::CDDB_File->new($filename, $track); # Name of audio file
my $db = MP3::Tag::CDDB_File->new_from($record, $track); # Contents of CDDB
($title, $artist, $album, $year, $comment, $track) = $db->parse();
see MP3::Tag
DESCRIPTION
MP3::Tag::CDDB_File is designed to be called from the MP3::Tag module.
It parses the content of CDDB file.
The file is found in the same directory as audio file; the list of possible file names is taken from the field "cddb_files" if set by
MP3::Tag config() method.
parse()
($title, $artist, $album, $year, $comment, $track) =
$db->parse($what);
parse_filename() extracts information about artist, title, track number, album and year from the CDDB record. $what is optional; it
maybe title, track, artist, album, year, genre or comment. If $what is defined parse() will return only this element.
Additionally, $what can take values "artist_collection" (returns the value of artist in the disk-info field DTITLE, but only if author
is specified in the track-info field TTITLE), "title_track" (returns the title specifically from track-info field - the "track" may
fall back to the info from disk-info field), "comment_collection" (processed EXTD comment), "comment_track" (processed EXTT comment).
The returned year and genre is taken from DYEAR, DGENRE, EXTT, EXTD fields; recognized prefixes in the two last fields are YEAR, ID3Y,
ID3G. The declarations of this form are stripped from the returned comment.
An alternative syntax "Recorded"/"Recorded on"/"Recorded in"/ is also supported; the format of the date recognized by ID3v2::year(), or
just a date field without a prefix.
title()
$title = $db->title();
Returns the title, obtained from the 'Tracktitle' entry of the file.
artist()
$artist = $db->artist();
Returns the artist name, obtained from the 'Performer' or 'Albumperformer' entries (the first which is present) of the file.
track()
$track = $db->track();
Returns the track number, stored during object creation, or queried from the parent.
year()
$year = $db->year();
Returns the year, obtained from the 'Year' entry of the file. (Often not present.)
album()
$album = $db->album();
Returns the album name, obtained from the 'Albumtitle' entry of the file.
comment()
$comment = $db->comment();
Returns the 'Trackcomment' entry of the file. (Often not present.)
genre()
$genre = $db->genre($filename);
perl v5.14.2 2009-04-15 MP3::Tag::CDDB_File(3pm)