Awk
Vim Regex Duplicate Lines Grouping
I have a log file like this: 开发者_如何转开发12 adsflljl 12 hgfahld 12 ash;al 13 a;jfda 13 asldfj[详细]
2023-04-09 03:57 分类:问答bash - determine a substring in one variable when an associated substring is known in another variable
Assuming I had two strings, one acts a string of space delimited keys, and another acts as the associative space-delimited values for each of the keys in the first:[详细]
2023-04-09 03:23 分类:问答Append to end of line to specific lines
I am writing a shell script and need some help. This script will take a开发者_开发知识库 file name as input and will modify that input file according to some logic.[详细]
2023-04-09 02:54 分类:问答How to find files with same size?
I have a file structure like so a/file1 a/file2 a/file3 a/... b/file1 b/file2 b/file3 b/... ... where within each dir, some files have the same file size, and I would like to delete those.[详细]
2023-04-08 17:36 分类:问答Add a new column to the file
How can I add a new c开发者_如何学Column to a file using awk? original.file F1 F2 F3 ..F10 add F11 to original.file[详细]
2023-04-08 14:45 分类:问答Apache Logs: Count top 10 URLs by bytes served
I have an Apache log format file. Example string: fj5020.inktomisearch.com - - [01/Oct/2006:06:35:59 -0700] \"GET /example/When/200x/2005/04/27/A380 HTTP/1.0\" 200 4776 \"-\" \"Mozilla/5.0 (compatibl[详细]
2023-04-08 06:06 分类:问答Matching two files with awk codes
There are two files first.file M1 M2 M3 ... second.file A1 M1 A2 M1 A2 M3 A3 M2 开发者_如何转开发A3 M4[详细]
2023-04-07 12:17 分类:问答How to process duplicate columns with conditions
I need to skip the all the r开发者_C百科ows with same column one, if column 2 is empty and then for others I need to calculate percentage of column 4 over column 3?[详细]
2023-04-07 11:31 分类:问答problem with shell variables in awk
I have a command which is executed successfully on command line: ls -l | awk \'/Sep 26/{split($8,a,\":\");if(a[1]a[2]>=1045 && a[1]a[2]<=1145)print $9}\'[详细]
2023-04-07 06:24 分类:问答Deleting columns from a file with awk or from command line on linux
How can I delete some columns from a tab separated fields file with awk? c1 c2 c3 ..... c60 开发者_运维知识库[详细]
2023-04-07 05:24 分类:问答