|
|
|
@ -8,12 +8,12 @@ The syntax of petri is a bit different than normal shells because it uses ASCII
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
#!/usr/bin/env petri
|
|
|
|
|
\(diff @ @)
|
|
|
|
|
^ ^
|
|
|
|
|
| |
|
|
|
|
|
\(diff @ @)
|
|
|
|
|
^ ^
|
|
|
|
|
| |
|
|
|
|
|
\(ls /dev) -> replace_x --+-> replace_y --x-+
|
|
|
|
|
| |
|
|
|
|
|
+-> replace_z --+
|
|
|
|
|
| |
|
|
|
|
|
+-> replace_z --+
|
|
|
|
|
---
|
|
|
|
|
replace_x: sed 's:x:y:g'
|
|
|
|
|
replace_y: sed 's:y:z:g'
|
|
|
|
@ -29,4 +29,4 @@ diff <(sed 's:z:x:g' < /tmp/temp_file) <(sed 's:y:z:g' < /tmp/temp_file)
|
|
|
|
|
|
|
|
|
|
#### Why 'petri'
|
|
|
|
|
|
|
|
|
|
Originally I wanted to call it `dish` but I found that to generic, and since dish is from time to time preceded with petri, I choose that.
|
|
|
|
|
Originally I wanted to call it `dish` but I found that too generic, and since dish is from time to time preceded with petri, I chose that.
|
|
|
|
|