Search Results

Search: Posts Made By: vasil
2,032
Posted By vasil
Hi Don, My initial post was to get an idea...
Hi Don,

My initial post was to get an idea how to extract different parts of a huge log file.
Thanks to yours and Scrutinizer advises I'm trying to prepare a script to extract all the parts i'm...
2,032
Posted By vasil
Thanks Scrutinizer Using combination from...
Thanks Scrutinizer

Using combination from Don's and yours command, can you advice how to use a variable in sed?
For example:

FILE=ss7;sed -n '/M3UA-Rx: UDT{/{h;n;}; H; /M3UA-Rx: }/{g;...
2,032
Posted By vasil
30 minutes after my post. Thank you Don for the...
30 minutes after my post. Thank you Don for the great answer.
Tested the last command and works.
2,032
Posted By vasil
Find pattern; grep n lines before and after
Hi,

I need help to grep a specific part of a log file (bold).

[ 13] 24/2/2017-16:57:17.056 frosti-1 M3UA-Tx: }
[ 13] 24/2/2017-16:57:17.056...
1,562
Posted By vasil
Hi RudiC Your last suggestion work for me...
Hi RudiC

Your last suggestion work for me now.
awk -F, 'NR==FNR{gsub (/^.* |_.*$/, "", $17); T[$17]; next}{for (i in T) if (match ($2, i"_[0-9][0-9][0-9] >$")) print}' file1 file2
< (VPN)...
1,562
Posted By vasil
Thank you all for your replies. @RudiC and...
Thank you all for your replies.

@RudiC and pravin27: Your suggestions doesn't work for me.
@Don: Sorry Don but I didn't understand your question in post #2 regarding bold tags.
I just made the...
1,562
Posted By vasil
Hi Don, Thank you for your reply. First,...
Hi Don,

Thank you for your reply.
First, ignore capital letter. The two files are file1.txt and file2.txt.
The both files have more than 1 million rows and the bold tags are in both of them. The...
1,562
Posted By vasil
Compare two files
Hi all,

I need help on the following.
I have two files:
File1.txt
< 2233122266196246529, NOT_USED, NOT_USED, NOT_USED, 2, NOT_USED, Y, N, 0, (VPN) 284016910526692, -1, 0, -1, NOT_USED,...
4,647
Posted By vasil
zcat /SMS/CDR/cdr_TC/callLogs*_*_2013092710*.gz |...
zcat /SMS/CDR/cdr_TC/callLogs*_*_2013092710*.gz | awk -F':|;' '{if($2==1 && $10~/389123456789/) print}'

13E075CB2; 1; 2; 8; none:none; 389123456789:1:1; 389123456789:1:1;...
4,647
Posted By vasil
Thanks pravin27 for the prompt answer, but in...
Thanks pravin27 for the prompt answer, but in this case the conditional {if($2==1 && $10~/389123456789/); doesn't work.

zcat /SMS/CDR/cdr_TC/callLogs*_*_2013092710*.gz | sed 's/:/;/g' | awk -F";"...
4,647
Posted By vasil
awk substitution
Hi all,

I need some help with substitution in awk.
Is it possible to substitute field from awk output with string from file?
For example:

zcat /SMS/CDR/cdr_TC/callLogs*_*_2013092710*.gz | sed...
Forum: Red Hat 04-23-2013
2,485
Posted By vasil
Ldapsearch problem
Hi
I'm not familiar with ldap and I hope someone to help me.
I need to get some attribute value from ldap DB.
When i run the following command is OK:

ldapsearch -h localhost -p 16611 -x -D...
3,052
Posted By vasil
Thank you for the quick answer. The script works...
Thank you for the quick answer. The script works perfectly.
3,052
Posted By vasil
shell script with decision making
Hi all
I need help for the issue below.
I need to create script:
FORM_cmd=query || import
FORM_command=add
FORM_msisdn=389881234567
FORM_provcode=SK
FORM_attr=12

FORM_cmd can be "query" or...
779
Posted By vasil
Need help
Hi all
I need help for the issue below.
I need to create script:
FORM_cmd=query || import
FORM_command=add
FORM_msisdn=389881234567
FORM_provcode=SK
FORM_attr=12

FORM_cmd must be "query"...
3,498
Posted By vasil
Thank you for the quick answers. Both options...
Thank you for the quick answers. Both options work perfectly.
3,498
Posted By vasil
Grep wildcards
Hi all
I want to search for number in file presented with wildcard as shown below.
cat file.txt
1405
1623[0-5]
1415[0-9][0-9]
.......
.......
How to search for the number 141526 for...
1,959
Posted By vasil
Hi ygemici Thank you very much for your...
Hi ygemici

Thank you very much for your great help. Now the output table is correct. Thank you again.
1,959
Posted By vasil
Hi ygemici Below is the output from the command...
Hi ygemici
Below is the output from the command
[user@OMCTC cdr_TC]$ /bin/zcat /CDR/cdr_TC/callogs*_*_20111201*.gz |sed 's/[:]/;/g' |awk -F";" '{if($1~/1/ && $2~/1/) print $0}' | more

1146D92DF ...
1,959
Posted By vasil
Hi ygemici, thank you for your suggestion but...
Hi ygemici,
thank you for your suggestion but my inpit is like
zcat calllogs*_*_$FORM_data*.gz
107D81EA4;1:1
1085AA51D;3:1
237366092;1:1
1085AA51D;3:1
237366092;0:1
107A2210D;0:1...
1,959
Posted By vasil
Thak you for your quick responce. I expect ...
Thak you for your quick responce.

I expect

msgid origpdu
237366092 1
237366092 0
237366092 0

but i the result is

msgid origpdu
237366092 1
msgid origpdu...
1,959
Posted By vasil
Need help shell+awk+html
Hi,

Can someone help me how to add header cell in html table if i use the script posted below?

I use shell script to search in files and format output into html table.

/bin/zcat...
Showing results 1 to 22 of 22

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