diff options
| author | Trygve Laugstøl <trygvis@inamo.no> | 2025-07-10 19:25:30 +0200 |
|---|---|---|
| committer | Trygve Laugstøl <trygvis@inamo.no> | 2025-07-10 19:26:38 +0200 |
| commit | 6a37ba289436cc09270cf63810888acb7df53002 (patch) | |
| tree | 5eb802acf511b6c8941b202d7d7c9d9f4b037b39 /stage-3.awk | |
| parent | b98c3fb1c46f6be09a1a5860340822ae9f5a6ecd (diff) | |
| download | constance-ring-6a37ba289436cc09270cf63810888acb7df53002.tar.gz constance-ring-6a37ba289436cc09270cf63810888acb7df53002.tar.bz2 constance-ring-6a37ba289436cc09270cf63810888acb7df53002.tar.xz constance-ring-6a37ba289436cc09270cf63810888acb7df53002.zip | |
Reorganizing awk code
Diffstat (limited to 'stage-3.awk')
| -rw-r--r-- | stage-3.awk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/stage-3.awk b/stage-3.awk new file mode 100644 index 0000000..2666bf3 --- /dev/null +++ b/stage-3.awk @@ -0,0 +1,13 @@ +# Mark chapters +/^ *([IVX][IVX]*)\.* *$/ { + gsub(/ */, "") + gsub(/\./, "") + print "" + print "# Kapittel " $0 + print "" + next +} + +{ + print +} |
