10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
2. Shell Programming and Scripting
Hi,
i have 30 html files and i want to add the html tag first (<html>) and end of the line </html> tag..How to do it in script.
Thanks, (7 Replies)
Discussion started by: bmk
7 Replies
3. UNIX for Dummies Questions & Answers
Hi, i would like to create user defined commands.
e,g:
if an user executes ,
mkdircd test then a directory called test should be created and it should be cd to test.
How i can create the command mkdircd with below action:
mkdir $1 && cd $1.
Please help me in achieving this (7 Replies)
Discussion started by: pandeesh
7 Replies
4. Programming
Hi
Is there a way to add more user-defined signals?
I am currently using SIGUSR1 and SIGUSR2 - but I need another one.
How can I do that?
Thanks! (9 Replies)
Discussion started by: naamabm
9 Replies
5. Shell Programming and Scripting
Hi,
I have a user defined variable _TIME1=xxx
I am using awk command for pattern matching.
cat $_LOCATION/catalina.txt | awk '/^`$_TIME1`:??:??/'
It not taking the value of $_TIME!
eg:I am using the command to get all the patter from 12:00:00 to 12:59:59
The user defined variable... (2 Replies)
Discussion started by: ahamed
2 Replies
6. Shell Programming and Scripting
Arg, I'm trying to figure out how to create a album tag based on the last modified date stamp for files which don't have a corresponding .talk file.
IE. 2009 12 10 - Talk Radio.mp3 is how I want them structured, they should all have a corresponding .talk file so my mp3 player can speak the name ie... (0 Replies)
Discussion started by: mrplow
0 Replies
7. Shell Programming and Scripting
Dear Friends,
I need a help regarding User defined function in shell script.
My problem is as follows:
my_func.sh
my_funcI(){
grep 'mystring' I.dat
}
my_funcQ(){
grep 'mystring' Q.dat
}
myfuncI
myfuncQ
But As both the function has same function only the... (11 Replies)
Discussion started by: user_prady
11 Replies
8. Shell Programming and Scripting
:confused: Hi i am a noob and need a little help to finish my shell script. I am learning as i go but hit a problem.
I am search thorugh logs(*.rv) files to find entires between two user defined dates,
The script so far looks for the "START" and "END" of each entry at sees if it belongs To... (0 Replies)
Discussion started by: mojo24
0 Replies
9. UNIX for Dummies Questions & Answers
I want to add a new IP service which executes a script on SCO OS5.
I have amended /etc/services and added to port number (3333)
I have amended /etc/inetd.conf and added a line for this service but I can't get it to execute my own shell script
When I telnet to the IP address on port 3333 I... (1 Reply)
Discussion started by: markdrury
1 Replies
10. AIX
Hi,
I am just running a incremental back-up on one of my server.
But these days It abrubtly fails with below error.
==========
User defined signal 1
===========
When I rerun the back-up, It completed successfully.Earlier this was not happening.
Any Idea, what could be the problem... (0 Replies)
Discussion started by: nitesh_raj
0 Replies
MP3::Tag::ParseData(3pm) User Contributed Perl Documentation MP3::Tag::ParseData(3pm)
NAME
MP3::Tag::ParseData - Module for parsing arbitrary data associated with music files.
SYNOPSIS
# parses the file name according to one of the patterns:
$mp3->config('parse_data', ['i', '%f', '%t - %n - %a.%e', '%t - %y.%e']);
$title = $mp3->title;
see MP3::Tag
DESCRIPTION
MP3::Tag::ParseData is designed to be called from the MP3::Tag module.
Each option of configuration item "parse_data" should be of the form "[$flag, $string, $pattern1, ...]". For each of the option, patterns
of the option are matched agains the $string of the option, until one of them succeeds. The information obtained from later options takes
precedence over the information obtained from earlier ones.
The meaning of the patterns is the same as for parse() or parse_rex() methods of "MP3::Tag". Since the default for "parse_data" is empty,
by default this handler has no effect.
$flag is split into 1-character-long flags (unknown flags are ignored):
"i" the string-to-parse is interpolated first;
"f" the string-to-parse is interpreted as the name of the file to read;
"F" added to "f", makes it non-fatal if the file does not exist;
"B" the file should be read in "binary" mode;
"n" the string-to-parse is interpreted as collection of lines, one per track;
"l" the string-to-parse is interpreted as collection of lines, and the first matched is chosen;
"I" the resulting string is interpolated before parsing.
"b" Do not strip the leading and trailing blanks. (With output to file, the output is performed in binary mode too.)
"R" the patterns are considered as regular expressions.
"m" one of the patterns must match.
"o", "O", "D"
With "o" or "O" interpret the pattern as a name of file to output parse-data to. With "O" the name of output file is interpolated.
When "D" is present, intermediate directories are created.
"z" Do not ignore a field even if the result is a 0-length string.
Unless "b" option is given, the resulting values have starting and trailing whitespace trimmed. (Actually, split()ing into lines is done
using the configuration item "parse_split"; it defaults to "
".)
If the configuration item "parse_data" has multiple options, the $strings which are interpolated will use information set by preceding
options; similarly, any interolated option may use information obtained by other handlers - even if these handers are later in the pecking
order than "MP3::Tag::ParseData" (which by default is the first handler). For example, with
['i', '%t' => '%t (%y)'], ['i', '%t' => '%t - %c']
and a local CDDB file which identifies title to 'Merry old - another interpretation(1905)', the first field will interpolate '%t' into
this title, then will split it into the year and the rest. The second field will split the rest into a title-proper and comment.
Note that one can use fields of the form
['mz', 'This is a forced title' => '%t']
to force particular values for parts of the MP3 tag.
The usual methods "artist", "title", "album", "comment", "year", "track", "year" can be used to access the results of the parse.
It is possible to set individual id3v2 frames; use %{TIT1} or some such. Setting to an empty string deletes the frame if config parameter
"id3v2_frame_empty_ok" is false (the default value). Setting ID3v2 frames uses the same translation rules as
select_id3v2_frame_by_descr().
SEE ALSO
The flags "i f F B l m I b" are identical to flags of the method interpolate_with_flags() of MP3::Tag (see "interpolate_with_flags" in
MP3::Tag). Essentially, the other flags ("R m o O D z") are applied to the result of calling the latter method.
perl v5.14.2 2009-12-30 MP3::Tag::ParseData(3pm)