Search Results

Search: Posts Made By: shanul karim
10,793
Posted By shanul karim
Sort table ignoring header
Dear experts,


Need help in order to find out way to sort table ignoring header.







Here I tried the sort option to ignoring header as




awk 'BEGIN{print ("NAME DATE,TIME CNT1...
13,963
Posted By shanul karim
Dear RudC, Got it, After changing /-/ hit...
Dear RudC,


Got it, After changing /-/ hit to /=/ issue resolved. :)
Thanks for really great support




Shanul
13,963
Posted By shanul karim
Thanks a lot jgir This one very...
Thanks a lot jgir


This one very quick/fast one liner.


After this awk i used seperate awk to process it further in order to insert new column which has values equal to ($6/$5)*100 or so on....
13,963
Posted By shanul karim
awk to format data into table
Dear team,


Here is the input file from which in need to get output table with values from each blocks



as BC, DATE & TIME(Apr 29, 08:10),NSMSSMRLTOT ,NSMSSRSUCC ,NSMSCMTOT , NSMSCMRSUCC ...
16,880
Posted By shanul karim
G8 thanks a lot its working and good...
G8 thanks a lot


its working and good enough


awk '$1~search {p=1} NF==0 {p=0}; p' search="NUMADDR" mgsvp_test.txt
NUMADDR NSUB NSUBA
4-9XXXXXXXXXXX 1244359 ...
16,880
Posted By shanul karim
Dear experts, Here below i tried...
Dear experts,




Here below i tried and its worked


$ awk '$0~s{p=1;next}/^$/{p=0}p' s="NUMADDR" mgsvp_test.txt
4-9XXXXXXXXXXX 1244359 1099510
4-9YYYYYYYYYYY 692 ...
16,880
Posted By shanul karim
awk match pattern and print lines till next blank line
Dear Experts,




Here is my input files which has various sections of data.


SURVEY RESULT

NUMADDR NUB NUBA
4-9XXXXXXXXXXX 1244359 1099510
4-9YYYYYYYYYYY ...
11,022
Posted By shanul karim
Dear hicksd8, Yes, My initial PM to him...
Dear hicksd8,


Yes, My initial PM to him only. He suggest me raise new discussion referring old post.
Its better if we hide it completely with dummy values.


However, thanks for your prompt...
11,022
Posted By shanul karim
Need to modify some information
Need to modify some information
11,022
Posted By shanul karim
Request to re open reference thread
Dear Neo,


Request to re open below closed discussion.





https://www.unix.com/shell-programming-and-scripting/273864-vlookup-linux.html?highlight=shanul+karim


regards,
Shanul
9,551
Posted By shanul karim
Thanks a lot RudC Noted , Your advise...
Thanks a lot RudC


Noted , Your advise will help me for learning better skill
9,551
Posted By shanul karim
Thanks RudC for valuable advice I will...
Thanks RudC for valuable advice


I will use same apprach


Here I tried below code





Result is somewhat not as expected





I have changed input file as suggested by you
9,551
Posted By shanul karim
Dear RudC, Can we have changes in your...
Dear RudC,


Can we have changes in your script according to below data..
9,551
Posted By shanul karim
Thanks a lot RudC.. This will solve all...
Thanks a lot RudC..


This will solve all my issue for using multiple awk liner to process the output.


From above description i got the idea in general.


But if you can explain code line...
9,551
Posted By shanul karim
Thanks a lot RudC Yes, Agreed from my...
Thanks a lot RudC


Yes, Agreed from my version ,The achivement was partial then i used column command to realigned the column.


But this one really great.


Can you explain this code, So I...
9,551
Posted By shanul karim
Dear RudC, Thnaks after removing next.. I...
Dear RudC,


Thnaks after removing next.. I got the desired output.


awk -F'[;,"]' '/vc_MessageInformation/{print a["m"] "," a["n"] "," a["o"] ",";delete...
9,551
Posted By shanul karim
awk unable to print array next to each other
Dear moderators/experts


I have below data as


1631321 2020-04-06T23:59:58.256+0300 PL-15 ER: "vc_MessageInformation=SDA: Location information cannot be obtained;...
7,171
Posted By shanul karim
Linux script execution with user input conditions
Dear experts,


I have below scripts which has 4 program function which need to be executed based on input from terminal.


Like below



echo " Choose Complete Single Cmd as CMD or ALL :...
6,093
Posted By shanul karim
awk to match condition and print in columns
Dear team,


Need support for below request.


Input file





The below code executed successful which check AdminState=UNLOCKED and if not it prints.


awk -F'=|,| ' 'BEGIN{
print...
5,059
Posted By shanul karim
awk statements involving several loops
Dear team,


The below is the input file.





Here need to run loop in awk which will check for "shaNmfTode=DL-$x,shaNmfTluster=myNmfTluster" where DL- has variable value started from 3 to...
5,085
Posted By shanul karim
awk statements involving several loops
Dear team,


The below is the input file.





Here need to run loop in awk which will check for "shaNmfTode=DL-$x,shaNmfTluster=myNmfTluster" where DL- has variable value started from 3 to...
5,159
Posted By shanul karim
Optimize code in single line
Dear team,


The below code is to check if number of lines in file greater than two then status is not ok else status is ok.
I need to optimize it in single line code in awk or sed if possible.
...
9,312
Posted By shanul karim
Dear RudC, Can you execute this code and...
Dear RudC,

Can you execute this code and share code with input file print. So, If i am doing any mistake will compare and fix.
As you get desired result in post#5.
9,312
Posted By shanul karim
Dear RudC, I did that change :). Dont know...
Dear RudC,

I did that change :). Dont know what small mistake i am doing. Also, tried many options..
But no luck!!!

$ awk '

/cluster state:/ {print $1, $2
...
9,312
Posted By shanul karim
Dear RudC, Thanks for explanation. The...
Dear RudC,

Thanks for explanation.
The Issue is now that when AMF status " Enabled and Unlocked". To me still output is AMF status is not ok.
Can you share how in your case it came as ok. Sorry...
Showing results 1 to 25 of 51

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