diff --git a/TaskB03/B03.py b/TaskB03/B03.py new file mode 100644 index 0000000..21b490d --- /dev/null +++ b/TaskB03/B03.py @@ -0,0 +1,11 @@ +import re +import sys + + +def line_contain_hamlet(line): + return re.search('19[0-9][0-9] r\.', line) + + +for line in sys.stdin: + if line_contain_hamlet(line): + print(line.rstrip('\n')) \ No newline at end of file diff --git a/TaskB03/Makefile b/TaskB03/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskB03/run b/TaskB03/run new file mode 100755 index 0000000..b282ae7 --- /dev/null +++ b/TaskB03/run @@ -0,0 +1,2 @@ +#!/bin/bash +python3 TaskB03/B03.py "$@" \ No newline at end of file