diff options
Diffstat (limited to 'buch/common/farbseiten.sh')
-rw-r--r-- | buch/common/farbseiten.sh | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/buch/common/farbseiten.sh b/buch/common/farbseiten.sh new file mode 100644 index 0000000..afccf66 --- /dev/null +++ b/buch/common/farbseiten.sh @@ -0,0 +1,217 @@ +#! /bin/bsh +# +# farbseiten.sh -- Formattierung der Farbseiteninfo für die Druckerei +# +# (c) 2020 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule +# +awk 'BEGIN { + result = "" + counter = 0 +} +{ + if (length(result) == 0) { + result = $1 + } else { + result = sprintf("%s,%d", result, $1) + } + counter++ +} +END { + printf("%s\n", result) + printf("Anzahl Farbseiten: %d\n", counter) +}' <<EOF +13 +16 +17 +19 +21 +23 +24 +25 +29 +30 +31 +34 +37 +42 +45 +49 +50 +52 +53 +55 +59 +65 +71 +72 +74 +76 +77 +78 +84 +85 +87 +88 +90 +91 +95 +100 +104 +107 +109 +110 +111 +113 +114 +116 +117 +120 +122 +123 +125 +140 +149 +150 +154 +155 +161 +162 +163 +165 +167 +170 +177 +187 +189 +190 +191 +192 +197 +204 +209 +210 +216 +217 +219 +220 +224 +225 +226 +228 +229 +230 +232 +233 +235 +236 +239 +241 +245 +246 +251 +266 +268 +269 +270 +271 +272 +273 +276 +278 +281 +284 +285 +286 +287 +288 +293 +300 +304 +305 +306 +307 +309 +310 +311 +312 +313 +316 +318 +319 +321 +324 +326 +328 +329 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +345 +347 +348 +349 +350 +352 +353 +357 +358 +359 +360 +365 +369 +370 +378 +387 +388 +389 +390 +391 +401 +404 +405 +406 +407 +408 +410 +411 +412 +414 +415 +416 +418 +420 +422 +423 +424 +425 +426 +427 +428 +434 +435 +436 +443 +447 +448 +449 +452 +455 +456 +457 +458 +460 +461 +469 +473 +474 +475 +481 +EOF |