From 9290c864ffa683cbeb4d5cb3f75399284a6a9cb2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 8 Nov 2022 13:49:57 +0200 Subject: [OKG] Added a rough extractor of JavaScript source from the HTML of the original programs --- Year 2/Computer Graphics Fundamentals/ExerciseJSExtractor.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 Year 2/Computer Graphics Fundamentals/ExerciseJSExtractor.sh diff --git a/Year 2/Computer Graphics Fundamentals/ExerciseJSExtractor.sh b/Year 2/Computer Graphics Fundamentals/ExerciseJSExtractor.sh new file mode 100755 index 0000000..46beab1 --- /dev/null +++ b/Year 2/Computer Graphics Fundamentals/ExerciseJSExtractor.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +createOKGProblemFile() { + awk 'BEGIN { injs = 0 } /<\/script>/ { injs = 0 } { if (injs == 1) { gsub(/^\t\t\t/, ""); print } } /