I do agree with the Coroan688. But this is how I am receiving the output when I tried above code.
Do stuff with APT|string|Application, ID, For and App|value
Please help.
Last edited by Franklin52; 02-11-2012 at 09:06 AM..
Reason: Please use code tags for data and code samples, thank you
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
All Expert,
I am using Sun OS 5.8 and Perl version 5 in One server and Perl 5.8 in another unix server.
I am able to read a file using fopen function of perl --file size having more then 3 GB of data.(In the machine where Perl 5.8 install)
But when i am running the same perl script --It... (1 Reply)
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
I have a file which has data in 8 lines:
10
34
6
1
4
46
67
31
I am trying to read each value into each different variable so that I use these variables in preparing my report.
Another option is to dynamically print each line values in the report like below:
users with privA:... (2 Replies)
Hi,
I'm just learning so I would appreciate some understanding line by line on the while loop/case script below.
Thanks so much.
joe.
echo "Good Morning."
echo "Enter 1 to Add"
echo "or q to quit."
while
do
read Enter
case $Enter in
1) echo "Addtion:"
echo... (3 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
LEARN ABOUT DEBIAN
app::info::handler::carp
App::Info::Handler::Carp(3pm) User Contributed Perl Documentation App::Info::Handler::Carp(3pm)NAME
App::Info::Handler::Carp - Use Carp to handle App::Info events
SYNOPSIS
use App::Info::Category::FooApp;
use App::Info::Handler::Carp;
my $carp = App::Info::Handler::Carp->new('carp');
my $app = App::Info::Category::FooApp->new( on_info => $carp );
# Or...
my $app = App::Info::Category::FooApp->new( on_error => 'croak' );
DESCRIPTION
App::Info::Handler::Carp objects handle App::Info events by passing their messages to Carp functions. This means that if you want errors to
croak or info messages to carp, you can easily do that. You'll find, however, that App::Info::Handler::Carp is most effective for info and
error events; unknown and prompt events are better handled by event handlers that know how to prompt users for data. See
App::Info::Handler::Prompt for an example of that functionality.
Upon loading, App::Info::Handler::Carp registers itself with App::Info::Handler, setting up a number of strings that can be passed to an
App::Info concrete subclass constructor. These strings are shortcuts that tell App::Info how to create the proper App::Info::Handler::Carp
object for handling events. The registered strings are:
carp
Passes the event message to "Carp::carp()".
warn
An alias for "carp".
croak
Passes the event message to "Carp::croak()".
die An alias for "croak".
cluck
Passes the event message to "Carp::cluck()".
confess
Passes the event message to "Carp::confess()".
INTERFACE
Constructor
new
my $carp_handler = App::Info::Handler::Carp->new;
$carp_handler = App::Info::Handler::Carp->new( level => 'carp' );
my $croak_handler = App::Info::Handler::Carp->new( level => 'croak' );
Constructs a new App::Info::Handler::Carp object and returns it. It can take a single parameterized argument, "level", which can be any one
of the following values:
carp
Constructs a App::Info::Handler::Carp object that passes the event message to "Carp::carp()".
warn
An alias for "carp".
croak
Constructs a App::Info::Handler::Carp object that passes the event message to "Carp::croak()".
die An alias for "croak".
cluck
Constructs a App::Info::Handler::Carp object that passes the event message to "Carp::cluck()".
confess
Constructs a App::Info::Handler::Carp object that passes the event message to "Carp::confess()".
If the "level" parameter is not passed, "new()" will default to creating an App::Info::Handler::Carp object that passes App::Info event
messages to "Carp::carp()".
BUGS
Please send bug reports to <bug-app-info@rt.cpan.org> or file them at <http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Info>.
AUTHOR
David Wheeler <david@justatheory.com>
SEE ALSO
App::Info documents the event handling interface.
Carp of documents the functions used by this class.
App::Info::Handler::Print handles events by printing their messages to a file handle.
App::Info::Handler::Prompt offers event handling more appropriate for unknown and confirm events.
App::Info::Handler describes how to implement custom App::Info event handlers.
COPYRIGHT AND LICENSE
Copyright (c) 2002-2008, David Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-03-15 App::Info::Handler::Carp(3pm)