Awk: Revision history

From Leo's Notes

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

3 July 2021

23 October 2020

26 August 2020

14 August 2020

22 May 2020

29 April 2020

12 September 2019

1 September 2019

8 March 2017

24 February 2017

15 December 2015

8 April 2015

29 March 2015

23 March 2015

13 December 2013

22 May 2013

  • curprev 22:2122:21, 22 May 2013 Leo talk contribs 383 bytes +383 Created page with " == Counting Lines Until Match == To print the number of lines before a match is found: awk 'BEGIN { n = 0 } /PATTERN/ { print n; next } { n++ }' Eg: Suppose I have a file ..."