make the name of file and fetch few things from log file
Hello All,
I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common
First I need to make the name of file for example
${Source Tag}.Stage[Please help me to make the name of the file above]
and then I need to fetch the few things like from the below format
These below three thing which I want to fetch from the above log file
Build Type
Source Tag
Result
Admins
Pls. assist me to update a new field having 40 rows to a file.
Test1.output
LV Space %free Space_used_04_15
dev 500 7 67%
dev1 800 7 75%
dev2 800 7 75%
dev3 900 7 ... (2 Replies)
Hi guys,
Please help me out in this problem. I have two files
FILE1
abc-23 : 4529675
cde-42 : 9824532
dge-91 : 1245367
gre-45 : 9824532
fgr-76 : 4529675
FILE2
4529675 : Gal Glu house-2-be
9824532 : cat mouse
1245367 : sirf surf-2-beta
where FILE2 is a static file with fixed... (5 Replies)
I wanna add a ":" at the end of each line, and i did something like this:
cat Totals | while read ID TOTAL
do
echo "${ID}:${TOTAL}:" >>Totals2
done
File: Totals
12345678:13
21443433:20
The outputs file Totals2 is:
12345678:13::
21443433:20::
but i want
12345678:13:... (3 Replies)
Dear All,
Please apology to me if this question already posted, because I try to find it but not found.
I have make bash script to automatically download data from ftp and this running very well. and after the data downloaded it will automatically extract the data and keep in the specific... (2 Replies)
How I can get the current make-file name in a make-file
So, if I run make with specified file:make -f target.mak
is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Hi,
I have written a small script from that iam appending the output to a file.If multiple users invoke the same script or if i invoke the same script n number of times (using &), the output file(ZZ/OUT) contains messup information.
#!/bin/bash
#
echo "Hello" >> /tmp/ZZ/OUT
sleep 10
echo... (4 Replies)
Hi Guys,
I have a file with around 1000 strings and i need to fetch the group to which each string belongs to from another file. Example is seen below.
File 1:
A
B
D
File 2:
START
A
B
C
END
START
M (5 Replies)
I'm trying to write a script in a directory that goes through the column the user specifies of 4 files that are inside the directory and calculates the min and the max values. This means that if the user specifies column 5, the script will go through column 5 of all 4 files and all that should give... (2 Replies)
Hi,
I am new to scripting. I have a log file and need to fetch specific logs and copy to another file.
A copy of the log is like this:
===============================================================
= JOB : server123#jobs1.jobstream1
= USER : andyc
= Tue 08/01/17... (3 Replies)
Discussion started by: Prngp
3 Replies
LEARN ABOUT DEBIAN
log::agent::tag::string
Agent::Tag::String(3pm) User Contributed Perl Documentation Agent::Tag::String(3pm)NAME
Log::Agent::Tag::String - a constant tag string
SYNOPSIS
require Log::Agent::Tag::String;
# Inherits from Log::Agent::Tag.
my $tag = Log::Agent::Tag::String->make(
-name => "session id",
-value => $session,
-postfix => 1,
-separator => " -- ",
);
DESCRIPTION
This class represents a constant tag string.
CREATION ROUTINE PARAMETERS
The following parameters are defined, in alphabetical order:
"-name" => name
The name of this tag. Currently unused.
"-postfix" => flag
Whether tag should be placed after or before the log message. By default, it is prepended to the log message, i.e. this parameter is
false.
"-separator" => string
The separation string between the tag and the log message. A single space by default.
"-value" => string
The tag's value.
AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com>
SEE ALSO Log::Agent::Tag(3), Log::Agent::Message(3).
perl v5.10.0 2002-03-09 Agent::Tag::String(3pm)