Awk
how to assign multiple field into a variable?
i would like to convert the data.txt file into the following output using awk 1liner cat data.txt personA neta netb netc[详细]
2023-04-13 05:27 分类:问答regular expression matching with awk
I\'m messing around a little with awk and I am still kind of new to bash/awk so bear with me when I do this to look for all processes running as root[详细]
2023-04-13 04:38 分类:问答awk getline skipping to last line -- possible newline character issue
I\'m using while( (getline line < \"filename\")> 0 ) within my BEGIN statement, but this while loop only seems to read the last line of the file instead of each line. I think it may be a newli[详细]
2023-04-13 02:28 分类:问答Transposing two fields in awk
Suppose that a file looks like: a|b|c|d a|b|c|d ... a|b|c|d How do I transpose two fields, for exa开发者_Python百科mple:[详细]
2023-04-12 18:15 分类:问答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 分类:问答Using Unix tools to process text: search and replace all text that are not between some lines
I\'m looking to do some text processing on a bunch of *.org files.I would like to change the following in each file:[详细]
2023-04-12 07:19 分类:问答tr command not working
Hello every one here I have a problem. I have afile in which there is some data like this mango apple orange[详细]
2023-04-12 07:18 分类:问答Need to replace string in file2 that matches first column of file1 with second column of file1
So, if the title didn\'t make sense, here\'s what I\'m trying to do: I have file1: 66.115.135.84:123.123.123.1[详细]
2023-04-12 04:44 分类:问答variables in awk
I have a following line in my shell script. time mysqlshow -u$user -p$password |egrep -v \'information_schema|performance_schema\' | awk \'{print \"mysql -u$user -p$password -Bse \\\"drop database\"[详细]
2023-04-12 03:20 分类:问答What are the differences among grep, awk & sed? [duplicate]
This question already has answers here: What are the differences between Perl, Python, AWK and sed? [closed][详细]
2023-04-12 01:08 分类:问答