I want to make a logfile with error messages, like this:
(collumms: CUSTNR DATE TIME ERROR MESSAGE)
102 20020807 135417 1 Uptime server is more than 6 months
5 20020808 111335 3 Backup not Ok!
2001 20020808 120428 6 Free space at server1 is less than 20%
etcetera
I... (2 Replies)
Hi
How could I use the command printf to display a big file.
So ex. I've a script with some variables like:
V1=358504 V2=FD0147 V3=dev5 V4=94577 V5=0 V6=UNIX V7=Policy V8=server V9=04/15/05 V10=19:18:41 V11=2341321467
while read V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11
do
printf "\n%s %s %s... (1 Reply)
Hi,
I am very confused with my printf command.
Somehow one variable can't line up with others...
newstart2 ="Mon Nov 11 01 00:00:00 2002"
printf "%-20s" $newstart2
Here is the output:
Mon Nov 11
01 00:00:00 2002
It spread out to two lines..
Why? (1 Reply)
Hi,
I a sequance number from 1-999 and i want asing the value like 001,002..999
Exp:
file_001
file_002
file_003...
file_999
How can i disaplay the sequnace number as mention above. (3 Replies)
hello,
I'm trying to display Unix variable using printf command.
Code:
awk '{ if ( $0 ~ /string/ ) {
printf( "%s\n%s\n",$0,"dsd"); #this one works
printf( "%s\n%s\n",$0,$HOME); #this does not work
} else {
print $0;
}
}' param1_1.txt
I could use here echo command but I'm... (2 Replies)
A big hello to everyone tagged to this site of knowledge . This is the first post of mine and I am looking forward to an enjoyable stint in this forum where I get to know a lot of new ideas and share whatever knowledge (its not much though :) ) I have acquired throughout my career so far with... (4 Replies)
Discussion started by: kumarjt
4 Replies
LEARN ABOUT DEBIAN
html::microformats::format::figure
HTML::Microformats::Format::figure(3pm) User Contributed Perl Documentation HTML::Microformats::Format::figure(3pm)NAME
HTML::Microformats::Format::figure - the figure microformat
SYNOPSIS
use HTML::Microformats::DocumentContext;
use HTML::Microformats::Format::figure;
use Scalar::Util qw(blessed);
my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
my @objects = HTML::Microformats::Format::figure->extract_all(
$dom->documentElement, $context);
foreach my $fig (@objects)
{
printf("<%s> %s
", $fig->get_image, $fig->get_legend->[0]);
foreach my $maker ($p->get_credit)
{
if (blessed($maker))
{
printf(" - by %s
", $maker->get_fn);
}
else
{
printf(" - by %s
", $maker);
}
}
}
DESCRIPTION
HTML::Microformats::Format::figure inherits from HTML::Microformats::Format. See the base class definition for a description of property
getter/setter methods, constructors, etc.
MICROFORMAT
HTML::Microformats::Format::figure supports figure as described at <http://microformats.org/wiki/figure>.
RDF OUTPUT
Data is returned using Dublin Core and FOAF.
BUGS
Please report any bugs to <http://rt.cpan.org/>.
SEE ALSO
HTML::Microformats::Format, HTML::Microformats.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT
Copyright 2008-2011 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
perl v5.14.2 2011-12-06 HTML::Microformats::Format::figure(3pm)