Pattern matching: return all the matches (instead of the first one found)

This commit is contained in:
Joeri Exelmans 2024-09-03 11:41:07 +02:00
parent a7148d455b
commit 7ece331efb
3 changed files with 102 additions and 37 deletions

View file

@ -1,8 +1,11 @@
#!/bin/sh
rm *.svg
rm *.dot
python main.py
dot randomGraph.dot -Tsvg > randomGraph.svg
dot randomPattern.dot -Tsvg > randomPattern.svg
# dot randomGraph.dot -Tsvg > randomGraph.svg
for filename in randomGraph-*.dot; do
dot $filename -Tsvg > $filename.svg
done
firefox randomGraph.svg
firefox randomPattern.svg
firefox *.svg