awk:display_line_before_the_matching_string
This is an old revision of the document!
AWK - Display line before the matching string
awk '/the_string/{print x};{x=$0}' file.txt
awk/display_line_before_the_matching_string.1600877500.txt.gz · Last modified: 2020/09/23 16:11 by 192.168.1.1