aboutsummaryrefslogtreecommitdiff
path: root/convert2.awk
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-07-10 18:58:30 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2025-07-10 18:58:30 +0200
commitb98c3fb1c46f6be09a1a5860340822ae9f5a6ecd (patch)
tree201de8afbf27052a6bd6866569c4915e0a910325 /convert2.awk
parenta1a68049744768403f63e6e2806eb79dff9522c6 (diff)
downloadconstance-ring-b98c3fb1c46f6be09a1a5860340822ae9f5a6ecd.tar.gz
constance-ring-b98c3fb1c46f6be09a1a5860340822ae9f5a6ecd.tar.bz2
constance-ring-b98c3fb1c46f6be09a1a5860340822ae9f5a6ecd.tar.xz
constance-ring-b98c3fb1c46f6be09a1a5860340822ae9f5a6ecd.zip
Reformatting awk
Diffstat (limited to 'convert2.awk')
-rw-r--r--convert2.awk32
1 files changed, 16 insertions, 16 deletions
diff --git a/convert2.awk b/convert2.awk
index b801ef1..a4c5a24 100644
--- a/convert2.awk
+++ b/convert2.awk
@@ -1,24 +1,24 @@
# awk
{
- while (match($0, /-$/)) {
- # Drop line continuation
- gsub(/-$/, "")
+ while (match($0, /-$/)) {
+ # Drop line continuation
+ gsub(/-$/, "")
- # Print the line, without newline
- printf "%s", $0
+ # Print the line, without newline
+ printf "%s", $0
- # Get the next line, skipping blank lines
- do {
- getline
- } while($0=="");
+ # Get the next line, skipping blank lines
+ do {
+ getline
+ } while($0=="");
- # Print the first word
- printf "%s\n", $1
+ # Print the first word
+ printf "%s\n", $1
- # Drop the first word, remove leading whitespace
- $1=""
- sub(/^[ \t]+/, "")
- }
+ # Drop the first word, remove leading whitespace
+ $1=""
+ sub(/^[ \t]+/, "")
+ }
- print
+ print
}