File size: 11,064 Bytes
b85888c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
00af1ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Source attribution

- [Using awk to remove the Byte-order mark](https://stackoverflow.com/questions/1068650/using-awk-to-remove-the-byte-order-mark) — question: Boldewyn; accepted answer: Bartosz (answer 1068700).

- [How to check if the variable value in AWK script is null or empty?](https://stackoverflow.com/questions/11952854/how-to-check-if-the-variable-value-in-awk-script-is-null-or-empty) — question: samarth; accepted answer: Levon (answer 11952924).

- [Swap two columns - awk, sed, python, perl](https://stackoverflow.com/questions/11967776/swap-two-columns-awk-sed-python-perl) — question: Charley Farley; accepted answer: perreal (answer 11967849).

- [Using multiple delimiters in awk](https://stackoverflow.com/questions/12204192/using-multiple-delimiters-in-awk) — question: Satish; accepted answer: embedded.kyle (answer 12204350).

- [Remove all text before colon](https://stackoverflow.com/questions/12297859/remove-all-text-before-colon) — question: NewUsr_stat; accepted answer: Sacha Epskamp (answer 12297934).

- [Printing the last column of a line in a file](https://stackoverflow.com/questions/13046167/printing-the-last-column-of-a-line-in-a-file) — question: Rayne; accepted answer: Olaf Dietsche (answer 13046224).

- [How to delete duplicate lines in a file without sorting it in Unix](https://stackoverflow.com/questions/1444406/how-to-delete-duplicate-lines-in-a-file-without-sorting-it-in-unix) — question: Vijay; accepted answer: Jonas Elfström (answer 1444448).

- [How to get first n characters of each line in unix data file](https://stackoverflow.com/questions/14462529/how-to-get-first-n-characters-of-each-line-in-unix-data-file) — question: Teja; accepted answer: Chris Seymour (answer 14462614).

- [using awk with column value conditions](https://stackoverflow.com/questions/14739057/using-awk-with-column-value-conditions) — question: user1687130; accepted answer: Rob Davis (answer 14739101).

- [Select row and element in awk](https://stackoverflow.com/questions/1506521/select-row-and-element-in-awk) — question: Tim; accepted answer: Dennis Williamson (answer 1506601).

- [Scripts for computing the average of a list of numbers in a data file](https://stackoverflow.com/questions/15681498/scripts-for-computing-the-average-of-a-list-of-numbers-in-a-data-file) — question: JackWM; accepted answer: Chris Seymour (answer 15681543).

- [How can I get the second column from command output?](https://stackoverflow.com/questions/16136943/how-can-i-get-the-second-column-from-command-output) — question: Qiang Xu; accepted answer: catay (answer 16137100).

- [awk partly string match (if column/word partly matches)](https://stackoverflow.com/questions/17001849/awk-partly-string-match-if-column-word-partly-matches) — question: pogibas; accepted answer: Ahmed Masud (answer 17001897).

- [How to select lines between two marker patterns which may occur multiple times with awk/sed](https://stackoverflow.com/questions/17988756/how-to-select-lines-between-two-marker-patterns-which-may-occur-multiple-times-w) — question: dvai; accepted answer: fedorqui (answer 17988834).

- [Use awk to find average of a column](https://stackoverflow.com/questions/19149731/use-awk-to-find-average-of-a-column) — question: Ben Zifkin; accepted answer: imp25 (answer 19150191).

- [Trim leading and trailing spaces from a string in awk](https://stackoverflow.com/questions/20600982/trim-leading-and-trailing-spaces-from-a-string-in-awk) — question: Marjer; accepted answer: Floris (answer 20601021).

- [Print line numbers starting at zero using awk](https://stackoverflow.com/questions/20752043/print-line-numbers-starting-at-zero-using-awk) — question: user790049; accepted answer: Lance Roberts (answer 20752092).

- [Print second-to-last column/field in `awk`](https://stackoverflow.com/questions/2096490/print-second-to-last-column-field-in-awk) — question: Brian G; accepted answer: Chris Kannon (answer 2096526).

- [cut or awk command to print first field of first row](https://stackoverflow.com/questions/22190902/cut-or-awk-command-to-print-first-field-of-first-row) — question: user3331975; accepted answer: devnull (answer 22190928).

- [How to remove leading whitespace from each line in a file](https://stackoverflow.com/questions/2310605/how-to-remove-leading-whitespace-from-each-line-in-a-file) — question: Lazer; accepted answer: shuvalov (answer 2310620).

- [Print all but the first three columns](https://stackoverflow.com/questions/2626274/print-all-but-the-first-three-columns) — question: hhh; accepted answer: olibre (answer 18817331).

- [How can I quickly sum all numbers in a file?](https://stackoverflow.com/questions/2702564/how-can-i-quickly-sum-all-numbers-in-a-file) — question: Mark Roberts; accepted answer: brian d foy (answer 2702614).

- [awk - concatenate two string variable and assign to a third](https://stackoverflow.com/questions/27028928/awk-concatenate-two-string-variable-and-assign-to-a-third) — question: user3738926; accepted answer: fedorqui (answer 27028953).

- [How to Sum a column in AWK?](https://stackoverflow.com/questions/28905083/how-to-sum-a-column-in-awk) — question: Ajo; accepted answer: mpromonet (answer 28905292).

- [How to use awk to print lines where a field matches a specific string?](https://stackoverflow.com/questions/2957094/how-to-use-awk-to-print-lines-where-a-field-matches-a-specific-string) — question: yael; accepted answer: Hank Gay (answer 2957225).

- [Using awk to print all columns from the nth to the last](https://stackoverflow.com/questions/2961635/using-awk-to-print-all-columns-from-the-nth-to-the-last) — question: Andy; accepted answer: zed_0xff (answer 2961994).

- [Print the last line of a file, from the CLI](https://stackoverflow.com/questions/3080693/print-the-last-line-of-a-file-from-the-cli) — question: yael; accepted answer: Joey (answer 3080722).

- [How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?](https://stackoverflow.com/questions/38972736/how-to-print-lines-between-two-patterns-inclusive-or-exclusive-in-sed-awk-or) — question: fedorqui; accepted answer: fedorqui (answer 38972737).

- [Printing everything except the first field with awk](https://stackoverflow.com/questions/4198138/printing-everything-except-the-first-field-with-awk) — question: cfischer; accepted answer: Ben Jackson (answer 4198169).

- [How to print last two columns using awk](https://stackoverflow.com/questions/4304917/how-to-print-last-two-columns-using-awk) — question: vehomzzz; accepted answer: codaddict (answer 4304949).

- [How to print all the columns after a particular number using awk?](https://stackoverflow.com/questions/5081916/how-to-print-all-the-columns-after-a-particular-number-using-awk) — question: Lazer; accepted answer: Amadan (answer 5082055).

- [Tab separated values in awk](https://stackoverflow.com/questions/5374239/tab-separated-values-in-awk) — question: shantanuo; accepted answer: glenn jackman (answer 5376527).

- [How to print matched regex pattern using awk?](https://stackoverflow.com/questions/5536018/how-to-print-matched-regex-pattern-using-awk) — question: marverix; accepted answer: kurumi (answer 5536068).

- [Bash tool to get nth line from a file](https://stackoverflow.com/questions/6022384/bash-tool-to-get-nth-line-from-a-file) — question: Vlad Vivdovitch; accepted answer: anubhava (answer 6022431).

- [How to split a delimited string into an array in awk?](https://stackoverflow.com/questions/8009664/how-to-split-a-delimited-string-into-an-array-in-awk) — question: Mohamed Saligh; accepted answer: Calin Paul Alexandru (answer 8009724).

- [How to print the number of characters in each line of a text file](https://stackoverflow.com/questions/8786634/how-to-print-the-number-of-characters-in-each-line-of-a-text-file) — question: vikas368; accepted answer: Fred Foo (answer 8786674).

- [How can I get the length of an array in awk?](https://stackoverflow.com/questions/9351902/how-can-i-get-the-length-of-an-array-in-awk) — question: softghost; accepted answer: shellter (answer 9351954).

- [How to add to the end of lines containing a pattern with sed or awk?](https://stackoverflow.com/questions/9591744/how-to-add-to-the-end-of-lines-containing-a-pattern-with-sed-or-awk) — question: yasar; accepted answer: user219882 (answer 9591835).

- [How to merge every two lines into one from the command line?](https://stackoverflow.com/questions/9605232/how-to-merge-every-two-lines-into-one-from-the-command-line) — question: shantanuo; accepted answer: Kent (answer 9605559).

- [Is there a way to completely delete fields in awk, so that extra delimiters do not print?](https://stackoverflow.com/questions/10693608/is-there-a-way-to-completely-delete-fields-in-awk-so-that-extra-delimiters-do-n) — question: merlin2011; accepted answer: ghoti (answer 38311342).

- [How can I make awk not use scientific notation when printing small values?](https://stackoverflow.com/questions/12714155/how-can-i-make-awk-not-use-scientific-notation-when-printing-small-values) — question: Manuel Selva; accepted answer: C2H5OH (answer 12714193).

- [Remove odd or even lines from a text file](https://stackoverflow.com/questions/21309020/remove-odd-or-even-lines-from-a-text-file) — question: SamuelNLP; accepted answer: Thor (answer 21309073).

- [How to number the ls output in unix?](https://stackoverflow.com/questions/2924251/how-to-number-the-ls-output-in-unix) — question: Snehal; accepted answer: Matthew Slattery (answer 2924284).

- [Convert WebVTT file from Youtube to plain text](https://stackoverflow.com/questions/56927772/convert-webvtt-file-from-youtube-to-plain-text) — question: user1029296; accepted answer: l'L'l (answer 56927959).

- [Sort a text file by line length including spaces](https://stackoverflow.com/questions/5917576/sort-a-text-file-by-line-length-including-spaces) — question: gnarbarian; accepted answer: neillb (answer 5917762).

- [Removing trailing / starting newlines with sed, awk, tr, and friends](https://stackoverflow.com/questions/7359527/removing-trailing-starting-newlines-with-sed-awk-tr-and-friends) — question: ELLIOTTCABLE; accepted answer: dogbane (answer 7359879).

- [sed delete and replace on top of file is not working as expected](https://stackoverflow.com/questions/79642956/sed-delete-and-replace-on-top-of-file-is-not-working-as-expected) — question: Rajeev; accepted answer: Ed Morton (answer 79642983).

- [awk command to subtract constant from a column and print results](https://stackoverflow.com/questions/79833920/awk-command-to-subtract-constant-from-a-column-and-print-results) — question: Matteo; accepted answer: pmf (answer 79833924).

- [Remove multiple occurrences of similar lines except the last](https://stackoverflow.com/questions/79980449/remove-multiple-occurrences-of-similar-lines-except-the-last) — question: blindwillie31; accepted answer: Bill Karwin (answer 79980454).