Awk:String search more than one time and capture OP
Dear All
During one of mine script developemnt i am stuch at one sub part. Requiremnt is as below kindly help me.
IP file:
Needed OP:
Here 1st column is site id,2ed/3rd column is down time marker "M" in input file,
4th/5th column is up time marked "*" in input file.
For 2ed occurance on KAD003 site no uptime("*") availalbe in IP file, so we need to right remark that site is still down.
Can someone please help me with searching a string during a specific time frame. Below is the format of the time from my log file.
"GET /AAM2009_wherewereheaded.wmv HTTP/1.1" 200 52307085
The search string I need is "AAM2009_wherewereheaded.wmv"
I need to search the number of... (1 Reply)
I want to know wich hdisk have only one pvid and also display hdisk with two pvid.
hdisk1 00c3fcd4e516183f testvg active
hdisk2 00c3fcd4e516189b testvg active
hdisk3 00c3fcd4e51618ec testvg ... (1 Reply)
What's the easiest way to search a file for a specific string and then look for other instances after that? I want to search for all Virtual Hosts and print out the Server Name and Document Root (if it has that info), while discarding the rest of the info.
Basically my file looks like this:
...... (6 Replies)
Need help with either sed or awk to acheive the following
file1
-----
In the amazon forest
The bats eat all the time...
mon tue wed they would eat berries
In the tropical forest
The bats eat all the time...
on wed bats eat nuts
In the rain forest
The bats eat all the time...
on... (2 Replies)
I would like to search between two a string. I thought this would be easy. The is always at the beginning of a line.
The code:
gawk '/^/{d=$1},/searchstring/,/^(d+1)/'
or
gawk '/^/,/searchstring/,/^/'
did not return the desired result.
inputfile.txt
999 some text searchstring some... (6 Replies)
I'd like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk.
I tried
This is how each line of the file looks like, different date and time in this format
Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th
... (2 Replies)
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.
Cat test
Nov 10, 2012 5:17:53 AM
INFO: Request Type
Line 1.... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
I have created the script to grep the errors from weblogic logs files and redirecting output to file.txt ...From file.txt I'm using awk command to collect the past 20 mins output...The script running from cron every 15 mins... The script working well...
Now the challenges, I'm trying to use... (27 Replies)
Dear All
My input file as under. From it I want op fine as mention below. Kindly help. I use below code but not help.
code:
awk -F" " '{print $2}'
ip file:
"BSCJNGR_IPA17_C" 030 131207 1305 RXOCF-353 PBD011_BGIL BOTH AC FAULTY
"BSCJNGR_IPA17_C" 991 131207 1637 RXOCF-224 NAV001_BGIL ... (5 Replies)
Discussion started by: jaydeep_sadaria
5 Replies
LEARN ABOUT MOJAVE
mmroff
MMROFF(1) General Commands Manual MMROFF(1)NAME
mmroff - reference preprocessor
SYNOPSIS
mmroff [ -x ] groff_arguments
DESCRIPTION
mmroff is a simple preprocessor for groff, it is used for expanding references in mm, see groff_mm(7). groff is executed twice, first with
-z and -rRef=1 to collect all references and then to do the real processing when the reference file is up to date.
-x Just create the reference file. This can be used to refresh the reference file, it isn't always needed to have accurate references
and by using this option groff will only be run once.
AUTHOR
Jorgen Hagg, Lund, Sweden <jh@axis.se>.
FILES
/usr/share/groff/1.19.2/tmac/tmac.m
/usr/share/groff/1.19.2/tmac/mm/*.cov
/usr/share/groff/1.19.2/tmac/mm/*.MT
/usr/share/groff/1.19.2/tmac/mm/locale
SEE ALSO groff_mm(7), groff_mmse(7), groff(1), troff(1), tbl(1), pic(1), eqn(1)Groff Version 1.19.2 25 September 2015 MMROFF(1)