Search Results

Search: Posts Made By: shanul karim
5,660
Posted By RudiC
Would this...
Would this (https://www.unix.com/303046306-post5.html) point you in the right direction to adapt your script?
7,342
Posted By RudiC
That's because if your first printout trigger /-/...
That's because if your first printout trigger /-/ is hit, only that array element is set yet. On top, all further date/time stamps do not match the data printed with them; the data are shifted one...
7,342
Posted By aigles
A possible solution : $ cat ./eshaqur.sh awk...
A possible solution :
$ cat ./eshaqur.sh
awk '
function printValues() {
if (Values) {
print S, Date, Value["NSMSSMRLTOT"],
...
9,956
Posted By MadeInGermany
awk can do this during reading the input file -...
awk can do this during reading the input file - no need to store everything and process in the END section.
awk '$1~search {p=1} NF==0 {p=0}; p' search="NUMADDR" fileThe p variable controls when to...
5,057
Posted By RudiC
There was no count specified in your changed...
There was no count specified in your changed request in post #8. This is as close as I get towards your before last specification:
awk -F";" '
BEGIN {print HD = "vc_MessageInformation ...
5,057
Posted By RudiC
No surprise: the next statement after every...
No surprise: the next statement after every single match stops processing the actual input line; you CANNOT print more that one item.
4,633
Posted By RudiC
Executing the awk script in your post #15 with...
Executing the awk script in your post #15 with exactly the data given in that post, I get
LOTC cluster
AMF cluster
LOTC cluster state is ok
AMF cluster state is ok


So I presume you might...
4,633
Posted By RudiC
Looks like your result in post #7 is EXACTLY what...
Looks like your result in post #7 is EXACTLY what you wanted...
25,814
Posted By RavinderSingh13
Hello shanul karim, Could you please try...
Hello shanul karim,

Could you please try following and let me know if this helps you.

awk -F, ' ##Setting field separator as comma.
{split($2,a," "); ##splitting 2nd field to an...
25,814
Posted By RavinderSingh13
Hello shanul karim, Welcome to forums, I...
Hello shanul karim,

Welcome to forums, I hope you will enjoy learning and sharing knowledge here. Could you please try following and let me know if this helps you.

awk -F, '{split($2,a,"...
25,814
Posted By RudiC
awk -F"[ ,]" ' # set the field...
awk -F"[ ,]" ' # set the field separator to space OR comma, so you really have 4 fields
{print $0, # print the line unmodified PLUS the OFS character...
25,814
Posted By RudiC
Try awk -F"[ ,]" '{print $0, ($2==$4?_:"NOT")...
Try
awk -F"[ ,]" '{print $0, ($2==$4?_:"NOT") "MATCHED"}' file
UDC_MSISDN,UDC_NPREFIX STG_MSISDN,STG_IMSI_NPREFIX NOTMATCHED
466000000000000,1545 466000000000000,820011902457295 NOTMATCHED...
25,814
Posted By rbatte1
Hello shanul karim, I have a few to...
Hello shanul karim,

I have a few to questions pose in response first:-
Is this homework/assignment? There are specific forums for these.
What have you tried so far?
What output/errors do...
Showing results 1 to 13 of 13

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