Search Results

Search: Posts Made By: Prachi Gupta
2,417
Posted By zaxxon
Either fix your problem or add redirect stderr to...
Either fix your problem or add redirect stderr to /dev/null.
37,609
Posted By raj_saini20
ELSE part i had included for the processes which...
ELSE part i had included for the processes which are started more than once
and i am assigning the number to the processes 1,2,etc along with name.
with split i am removing that assigned number...
37,609
Posted By raj_saini20
yes. This is new code awk -F"|" ' ...
yes. This is new code

awk -F"|" '
BEGIN{i=1}
($7 ~ /Task started on a component/){ if(!f[$9])
{ f[$9]=1;
y=substr($9,1)"::"substr(f[$9],1);
a[y]=$1;
b[y]=$8;...
37,609
Posted By raj_saini20
when i am running the program with this set of...
when i am running the program with this set of data it is giving the output as required by you


filesystem:CERR B678C56D-96DA-4FFC-B40E-9A032A2EB12E 42263
...
37,609
Posted By raj_saini20
i have checked for these input also. its giving...
i have checked for these input also. its giving the following output


subroute.endpoint:Inbound 4062CE9C-09E0-403D-BD2E-1C147CA40113 36521
eip.router:CP Exists ? ...
37,609
Posted By raj_saini20
Try this $awk -F"|" '{gsub(" ","",$7);if($7...
Try this

$awk -F"|" '{gsub(" ","",$7);if($7 ~ /^Taskstarted$/){print $1}}' filename


output is

2012-05-09 10:28:47.94
37,609
Posted By itkamaraj
try this awk -v var4="$var2" -v...
try this


awk -v var4="$var2" -v var5="$var3" -F\| '{gsub(" ","",$7)} $7~/^Taskstarted$|^Exchangestarted$/' && $8~var4 && $9~var5 {print $1}' Sri1.log >> file1.txt
37,609
Posted By itkamaraj
provide the input file and the expected output
provide the input file and the expected output
37,609
Posted By itkamaraj
your 7th field has space also. so, use this...
your 7th field has space also.

so, use this

gsub(" ","",$7) -- remove all the space. So your 7th field becomes "Taskstarted"


awk -v var4="$var2" -v var5="$var3" -F\| '{gsub(" ","",$7)}...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 06:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy