Hello,
I just wanted to know if there is a way in UNIX to select a line value from a list of words. there is no line number before each word, hence could not use grep. (4 Replies)
:confused:
Good Day,
I have this script that gets the archive names and the time it applies based on the alert log. The application of archives are of daily basis and usually many so having this script helps my job become easier.
My problem is that when i get all the time stamps and... (1 Reply)
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Hi! I've a file as shown below
1 hello
2 how
5 are
3 you
4 hello
5 world
Every statement consists of line numbers at the beginning which are not in sequence.
Now I want to select all the line numbers which are present between the line numbers specified by the user..
For example... (1 Reply)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
I have two files. One is consisting of one line, with data separated by spaces and each number appearing only once.
The other is consisting of one column and multiple lines which can have some numbers appearing more than once.
It looks something like this:
file 1:
20 700 15 30
file2:
10... (10 Replies)
CGI ::Application::Plugin::DBIProfile::Graph::GDGraphInliUserpContributed Perl DocumCGI::Application::Plugin::DBIProfile::Graph::GDGraphInline(3pm)NAME
CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline - Inlined GD Graph output for CAP:DBIProfile.
SYNOPSIS
# in httpd.conf
SetVar CAP_DBIPROFILE_GRAPHMODULE CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline
PerlSetVar CAP_DBIPROFILE_GRAPHMODULE CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline
DESCRIPTION
This module provides a GD::Graph::bars inlined graphing option for CAP:DBIProfile. Please note, inlined images are NOT supported by MSIE as
of version 7. Mozilla, Firefox, Opera, Safari, and Konqueror are supported.
The following settings control the output:
$CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline::FORMAT
Output format. Defaults to "png". One of "png", "gif", or "jpeg". Any GD supported output format can be easily added.
$CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline::WIDTH
Width of output image. If you have problems with browser support for large inline images, reduce this.
$CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline::HEIGHT
Height of output image. If you have problems with browser support for large inline images, reduce this.
BUGS
Microsoft Internet Explorer, as of versions 6 and 7, lacks support for the "data: URI scheme", and thus lacks support for inline images.
Inline images max size is limited to the browsers max URI length. For example, on Opera, this used to be 4kb. If you hit this limit, you
can change the size of the output to try to compensate.
REQUIREMENTS
GD::Graph
MIME::Base64
SEE ALSO
CGI::Application::Plugin::DBIProfile
CGI::Application::Plugin::DBIProfile::Graph::HTML
AUTHOR
Joshua I Miller, L<unrtst@cpan.org>
COPYRIGHT & LICENSE
Copyright 2007 Joshua Miller, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-11-10 CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline(3pm)