06-01-2009
not helpful
okay that post was not helpful in the least. I understand not to include perl in the string, I meant to take it out. any other help out there?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
Discussion started by: Issemael
5 Replies
2. Shell Programming and Scripting
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies
3. Shell Programming and Scripting
Hi guys...Wow I just composed a huge post and it got erased as I was logged out automatically
Anyways I hope someone can help me out here.
So the task I'm working on is like this
I have a bunch of files that I care about sitting in a directory say $HOME/files
Now my job is to go and loop... (6 Replies)
Discussion started by: rukasetsuna
6 Replies
4. Shell Programming and Scripting
Hello Everyone,
I've googled everywhere for this with no luck and my brain hurts.
I'm trying to write a program to take my webpages and search for forms.
I've used LWP::Simple to store a website in $content
I need to cut the form out of $content. I don't know how to do this seeing as how... (2 Replies)
Discussion started by: wibbs
2 Replies
5. Shell Programming and Scripting
Hi all, I need help.
I have an input text file (input.txt) like this:
21 GTGCAACACCGTCTTGAGAGG 50
21 GACCGAGACAGAATGAAAATC 73
21 CGGGTCTGTAGTAGCAAACGC 108
21 CGAAAAATGAACCCCTTTATC 220
21 CGTGATCCTGTTGAAGGGTCG 259
Now I need to count A/T/G/C numbers at each character location in column... (2 Replies)
Discussion started by: thienxho
2 Replies
6. Shell Programming and Scripting
I have several .csv files containing data like this:
field_1;field_2;date;comment;amount;
I want to extract the 3 last fields and load them in a database.
my input_file = "/dir/file.csv";
my output_file = "/dir/file.sql";
open my $csv_file, '<', $input_file
or die "Can't... (1 Reply)
Discussion started by: freddie50
1 Replies
7. Shell Programming and Scripting
Dear fellows, I need your help.
I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column number.
Each Line (loop) begins with digit (RANGE).
At this moment it's kind of working, but it... (6 Replies)
Discussion started by: AK47
6 Replies
8. Shell Programming and Scripting
Hello....
Pls help me (and sorry my english) :)
So
I have a file (test.txt) with 1 long line.... for example:
isgc jsfh udgf osff 8462 error iwzr 653 idchisfb isfbisfb sihfjfeb isfhsi gcz eifh
How to print after the "error" word the 2nd 4th 5th and 7th word??
output well be:
653 isfbisfb... (2 Replies)
Discussion started by: marvinandco
2 Replies
9. Shell Programming and Scripting
I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file.
Here is the file.
<!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies
10. Shell Programming and Scripting
I am trying to change the number in bold to 2400
01,000300032,193631306,190619,0640,1,80,,2/
02,193631306,000300032,1,190618,0640,CAD,2/
I'm not sure if sed or awk is the answer. I was going to use sed and do a character count up to that point, but that column directly before 0640 might... (8 Replies)
Discussion started by: juggernautjoee
8 Replies
LEARN ABOUT DEBIAN
log::agent::tag
Agent::Tag(3pm) User Contributed Perl Documentation Agent::Tag(3pm)
NAME
Log::Agent::Tag - formats caller information
SYNOPSIS
Intended to be inherited from
DESCRIPTION
This class is meant to be inherited by all the classes implementing a log message tag.
A message tag is a little string that is either appended or prepended to all log messages.
For instance, and oversimplifying a bit, a tag meant to be prepended will be inserted in front of the current log message, separated by
separator, which defaults to a single space:
+------------+-----------+---------------------------------+
| tag string | separator | current log message |
+------------+-----------+---------------------------------+
This operation is called tag insertion. The whole string then becomes the current log message, and can be the target of another tag
insertion.
The reality is a little bit more complex, to allow successive tags to be prepended or appended in the order they are specified, and not in
reverse order as they would be if naively implemented. See Log::Agent::Message for the exact semantics of append() and prepend()
operations.
FEATURES
This section documents the interface provided to heirs, in case you wish to implement your own tag class.
_init(name, postfix, separator)
Initialization routine that should be called by all heirs during creation to initialize the common attributes.
postfix
When true, the tag is meant to be appended to the log message. Otherwise, it is prepended.
name
The name of this tag. It is meant to provide by-name access to tags, check whether a given tag is recorded, etc... The names "caller"
and "priority" are architecturally defined to refer to "Log::Agent::Tag::Caller" and "Log::Agent::Tag::Priority" objects.
NOTE: Currently unused by any client code.
separator
The sperating string inserted between the tag and the log message. It defaults to " " if not specified, i.e. left to "undef" when
calling _init().
string()
A deferred routine, to be implemented by heirs.
Returns the tag string only, without the separator, since its exact placement depends on the value of the "postfix" attribute.
insert(message)
Insert this tag withing the "Log::Agent::Message" message, according to the tag specifications (placement, separator). Calls string()
to produce the tag string.
This routine is frozen and should not be redefined by heirs.
STANDARD TAGGING CLASSES
Tagging classes define via their "string()" routine what is the string to be used as a tag. The insertion of the tag within the log
message is done via a frozen routine from the "Log::Agent::Tag" ancestor.
The following classes are provided by "Log::Agent":
"Log::Agent::Tag::Callback"
The "string()" routine invokes a user-supplied callback, given as a "Callback" object. You need the Callback module from CPAN if you
wish to use this class.
"Log::Agent::Tag::Caller"
Used internally to compute the caller and format it according to user specifications.
"Log::Agent::Tag::Priority"
Used internally to format message priorities and add them to the log messages.
"Log::Agent::Tag::String"
Defines a constant tagging string that should be added in all the log messages, e.g. a web session ID.
AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com>
SEE ALSO
Log::Agent::Message(3).
perl v5.10.0 2002-03-09 Agent::Tag(3pm)