The awk script is using heuristic to determine where to insert the Duplex commands in the file.
The bash script is using the bash "feature" of sending to a network socket using the fake device paths that are builtin to bash.
### Keybase proof | |
I hereby claim: | |
* I am karlredgate on github. | |
* I am karlredgate (https://keybase.io/karlredgate) on keybase. | |
* I have a public key ASDyTOEVSMjPm2PmOWD5DEARC-jg3HkQj2b-Fb1EJ53V5Ao | |
To claim this, I am signing this object: |