Search Results

Search: Posts Made By: zanetti321
1,503
Posted By zanetti321
Need a modification on this script
Hi All

I have files contains rows which look like this:

2 20090721_16:58:47.173 JSUD2 JD1M1 20 IAM 966591835270 249918113182 b 3610 ACM b 3614 ACM b 3713 CPG b 3717 CPG f 5799 REL b 5815 RLC b...
5,034
Posted By zanetti321
Finally Perl Worked :)
Dear Era

Finally i succeded to execute the perl script you gave me before but the output as you said is not may expectations at all here you the output

218914146348 matches , maps to
f...
5,034
Posted By zanetti321
Dear Era Please Lets concentrate on the nawk...
Dear Era

Please Lets concentrate on the nawk ; i do have nawk ; i can't catch the perl script at all or may be i can't run it , what i did that i write the same code you gave me in a seperate file...
5,034
Posted By zanetti321
Reply
Dear Era

I tried your perl script code and it can't be executed also i tried your last code optimized ; when i tried it directly it tells ambiguous output redirect when i write it in a separate...
5,034
Posted By zanetti321
Reply
Dear Era

The problem is that the perl script dont output my need at all ; i prefer to use the last code which is :

vnix$ sed -e 's%\(.*\) \(.*\)%$4 ~ /^\2/ { c1=" \1" } $5 ~ /^\2/ { c2=" \1"...
5,034
Posted By zanetti321
Sorry
Sorry but i forget to put the input lines which is mentioned in my first words; it look like this:

Belgium1 ISC 3 924556808 393475157928 b 1B
Italy ISC 151 925082838 447717254923 b 26
ISC...
5,034
Posted By zanetti321
Country Codes script faster response ;please help
Dear all

I have group of input lines which look like this


These input lines is placed in a file named phonelines.txt and there is a script which match $4 and $5 with country codes placed in...
Forum: Solaris 04-18-2008
1,944
Posted By zanetti321
Telnet Problem Help
Dear All

I have a Sun280R server when i telnet to this server from my Laptop i got error :

Could connect to 192.168.199.10(Server IP):port 23 closed

I want to login to the server through its...
2,181
Posted By zanetti321
Reattemps Calculation using awk
Dear All

How are you

I have files which look like this :

20080406_12:43:55.779 ISC Sprint- 39 21624032999 218925866728
20080406_12:44:07.811 ISC Sprint- 20 21620241815 218927736810...
2,894
Posted By zanetti321
Performing Script on Multiple Files
Dear All

I have group of files named :

CDR.1,CDR.2.,CDR.3,CDR.4,CDR.5,CDR.6,etc.......

I am performing an awk command look like this : nawk -f script CDR.*

What i want is that i want to...
8,894
Posted By zanetti321
Reply
I am not right now in location where i can execute but i wanna ask question:

Last Reply mentioned by Unilover i want the final out put to be directed in one file so will this script make this ?
...
8,894
Posted By zanetti321
Reply
Dear Unilover

I typed the commands you told me the result is :
geo@spiserver /home/geo/cdr/ItalyRel 5 > uname -a
echo "{$(sed 's=\(.*\) \(.*\)=if($4~/^\2/)print $0\" \1\"=' country-codes.txt)}"...
8,894
Posted By zanetti321
Reply
Dear Unilover
this what i have typed for the faster code:

geo@spiserver /home/geo/cdr/ItalyRel 25 > awk "{$(sed 's=\(.*\) \(.*\)=if($4~/^\2/)print $0\" \1\"=' country-codes.txt)}"...
8,894
Posted By zanetti321
Variable syntax
Dear Unilover

Thanks for your code but i typed it the script you gave me the result is
Variable Syntax

So i think there may problem in Syntax

Please advise

Zanetti
8,894
Posted By zanetti321
Dear Unilover I would like to thank you...
Dear Unilover

I would like to thank you very much for your code , i think it is the one that i want ,

Please can you tell me about the sed scripting you used , can you tell for example what...
8,894
Posted By zanetti321
Reply
Dear Era

Thanks for your reply; just i want to check on a certain issue:

Regarding mapping.txt files it will contain large number of country codes ; so will this affect or it is ok?
...
8,894
Posted By zanetti321
Reply
Dear Era

The Information needed will be a simple file for example list of country codes and the corresponding country for example:

Egypt-Vodafone 2010
Egypt-Mobinil- ...
8,894
Posted By zanetti321
Additional Info
Adding to my last request the file containing this line contains about 300000 lines so the script should be somehow fast.

Thanks
Zanetti
8,894
Posted By zanetti321
Script for Country Codes
Dear All

I have a file which contains lines looks like this:

ISC Egypt-Alex2 126 104541338 218926893238 f 1B

ISC BT-Colindale 26 249126190534 218913486850 b 29

ISC Egypt-Cairo2 199...
5,428
Posted By zanetti321
Perl
Dear Era

Sorry if i bothered you but anyway the second command didn't work i typed it as you give me it seems to be executing but i wait for a long time and nothing appear or any error message ,...
5,428
Posted By zanetti321
Perl Results
Dear Era

Thanks for your care

I tried gawk but it doesn't work

Regarding perl i tried the first command and it returns the number of fields per each line , i even redirected the output to a...
5,428
Posted By zanetti321
Dear Era I have typed this command cat...
Dear Era

I have typed this command

cat CDR.* | awk '{print NF}' on these lines the output is below
25
18
18
25
18
18
18
18
18
18
22
22
18
22
18
5,428
Posted By zanetti321
Annoying problem
Dear Era

I tried the command you typed to me the reply is :

awk: Input line has too many number of fields and then he writes the input line name !!

i tried using nawk it gives the same...
5,428
Posted By zanetti321
Annoying Problem :(
Dear All

Please Ignore the first requirement regarding the country codes my second problem can be explained as follows.:mad:

I have a group of patterns like this :
2 20080324_13:06:31.373 ISC...
5,428
Posted By zanetti321
Dear All I have a pattern which look like...
Dear All

I have a pattern which look like this:
2 20080312_10:55:35.800 Spain-Telefonica ISC 9 IAM 927535957 34670505334 f 275 COT b 700 ACM b 6577 CPG b 10726 ANM b 202195 REL f 202307 RLC...
Showing results 1 to 25 of 39

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