gawk
How to calculate exact median of a sorted array without holding the whole array and with constant space?
I need to read sorted array from input to awk/gawk and get median. I don\'t want to store the whole array and am trying to get cons开发者_JAVA技巧tant space for the calculation.[详细]
2023-04-12 07:22 分类:问答Awk: How to cut similar part of 2 fields and then get the difference of remaining part?
Let say I have 2 fields displaying epoch time 开发者_Python百科in microseconds: 1318044415123456,1318044415990056[详细]
2023-04-11 19:46 分类:问答A Perl or Gawk script that returns a Keyword, the word before, and the word after?
I need a simple script to run in Windows that searches large xml files for a keyword, then returns the word before it, the keyword, and the word after.[详细]
2023-04-11 01:02 分类:问答Text file parsing
I have many text documents that are filled with sudo tables like the example below.What would be the best way to parse out the table into something like a hash or array?[详细]
2023-04-06 04:56 分类:问答Help needed to nab the malware viral activity using awk
I am facing issues with my server as sometimes the malwares are adding their code at the end or start of the files. I have fixed the security loopholes to the extent of my knowledge. My hosting provid[详细]
2023-04-03 09:20 分类:问答Sed for partial replacement?
Imagine I have a file that has the following type of line: FIXED_DATA1 VARIABLE_DATA FIXED_DATA2 I want to change the fixed data and leave the variable data as is. For various reasons, using two sed[详细]
2023-03-21 22:56 分类:问答gawk : extracting data from special symbols
I am trying to get the total time from开发者_开发知识库 strace -T, which is reported as : pid command [time][详细]
2023-03-18 03:43 分类:问答Bind AWK TCP connection to certain IP
/inet/tcp/80/0/0 Port 80 is alre开发者_C百科ady in use by eth0:1 (lighttpd server) but I\'d like to bind my AWK process on eth0.[详细]
2023-03-17 21:47 分类:问答How to print awk's results with different colors for different fields?
This file has 3 fields. I wanted e.g. the first 2 fields in green, and the third in white (NB : black background), so I tried :[详细]
2023-03-17 00:59 分类:问答How to know what to
Im using awk, and want to send in an arbitrary number of text files (arguments) into my script, and for each input file \"print something\".[详细]
2023-03-16 23:29 分类:问答