Awk
comparing 2 large unsorted CSV files based on 2 columns
I am tasks with comparing 2 large unsorted .csv files based on column 1 and 3. Each file contains about 200k records. For the output, I need to know which records based on column 1 and 3 exist in the[详细]
2023-03-26 20:19 分类:问答Extracting data from a text file using awk [duplicate]
This question already has answers here: Closed 11 years ago. Possible Dupl开发者_StackOverflow中文版icate:[详细]
2023-03-26 19:15 分类:问答Cutting characters from certain lines if condition is met, otherwise printing whole line
I want to cut the characters n-N of a line, but ONLY if the line begins with certain characters, otherwise I want to print the whole line.[详细]
2023-03-26 13:53 分类:问答awk histogram in buckets
Consider I have a following file.. 1 a 1 b 1 a 1 c 1 a 2 a 2 d 2 a 2 d I want to have a histogram within a bucket... for example if bucket is 1 then the output will be[详细]
2023-03-26 13:10 分类:问答replace nth occurrence of character in a file using awk regardless of the line
I am trying to replace the nth occurrence of a character or string regardless of the 开发者_开发百科line using awk.[详细]
2023-03-26 10:16 分类:问答Replace space character at the end of a line with a specific string
I\'m dealing with space delimited file with 6 fields: Pop1 ID60776 62 C 10 62 Pop1 ID62442 13 A 2 13 Pop1 ID63614 56 C 0[详细]
2023-03-26 08:28 分类:问答How to extract a substring beginning and ending with user defined special characters from a string in linux?
I am working on linux scripts and want to extract a substring out of a master string as in the following example :-[详细]
2023-03-26 06:58 分类:问答SPLIT file by Script (bash, cpp) - numbers in columns
I have files with some columns filled by numbers (float). I would need to split these files according to the value in one of the columns (can set as the first one). 开发者_开发技巧This means, when[详细]
2023-03-26 03:59 分类:问答regex submatch replace
I\'m trying to replace all occurrences of a word but only when is placed inside a pair of delimiters. Example:[详细]
2023-03-25 13:35 分类:问答awk multiline problem
Have been trying to write an awk script which processes a log file, but am struggling. I have a file which has lines which look like this:[详细]
2023-03-25 11:44 分类:问答