From 6a37ba289436cc09270cf63810888acb7df53002 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 10 Jul 2025 19:25:30 +0200 Subject: Reorganizing awk code --- convert2.awk | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 convert2.awk (limited to 'convert2.awk') diff --git a/convert2.awk b/convert2.awk deleted file mode 100644 index a4c5a24..0000000 --- a/convert2.awk +++ /dev/null @@ -1,24 +0,0 @@ -# awk -{ - while (match($0, /-$/)) { - # Drop line continuation - gsub(/-$/, "") - - # Print the line, without newline - printf "%s", $0 - - # Get the next line, skipping blank lines - do { - getline - } while($0==""); - - # Print the first word - printf "%s\n", $1 - - # Drop the first word, remove leading whitespace - $1="" - sub(/^[ \t]+/, "") - } - - print -} -- cgit v1.2.3