Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
stew
s0vouchers
Commits
6c6568ad
Commit
6c6568ad
authored
Nov 10, 2018
by
stew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make regexp a bit more forgiving
parent
88b75958
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vouchers.sh
vouchers.sh
+1
-1
No files found.
vouchers.sh
View file @
6c6568ad
...
...
@@ -8,7 +8,7 @@ function gendot(){
echo
"subgraph {"
;
wget
-q
-O
- https://pad.stratum0.org/p/35c3vouchers/export/txt |
awk
'/^\*[0-9]+\. Fertig/{f=1;next} /^\*[0-9]+/{f=0} !/^\s+1\. /{next} f{print tolower($0)}'
|
sed
-E
-e
"s/^
\s
*[0-9]+.
\s
+([^, _]+).*an
([^, _]+).*,
\s
+([0-9]{2})
\.
([0-9]{2})
\.
[0-9]{4}
\s
*
$/
\"\\
1
\"
->
\"\\
2
\"
\n
subgraph cluster_
\\
3
\\
4 {margin=10;label=
\"\\
3.
\\
4.
\"
; pencolor=transparent; labeljust=l;
\"\\
2
\"
}/"
|
sed
-E
-e
"s/^
\s
*[0-9]+.
\s
+([^, _]+).*an
\s
+
([^, _]+).*,
\s
+([0-9]{2})
\.
([0-9]{2})
\.
[0-9]{
2,
4}
\s
*
$/
\"\\
1
\"
->
\"\\
2
\"
\n
subgraph cluster_
\\
3
\\
4 {margin=10;label=
\"\\
3.
\\
4.
\"
; pencolor=transparent; labeljust=l;
\"\\
2
\"
}/"
|
sed
-E
-s
"s/(.*)
\"
xxx(.*)xxx
\"
(.*)/
\\
1
\"\\
2
\"
\\
3
\n\"\\
2
\"
[shape=underline]/"
;
echo
"}}"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment