Last active
August 22, 2016 15:21
-
-
Save jpluscplusm/7cb3c7018f1caf215d83baee062e51b4 to your computer and use it in GitHub Desktop.
AWK invocations for ASCII-delimited operation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ASCII-delimited input and output | |
awk -vFS="\x1F" -vRS="\x1E" -vOFS="\x1F" -vORS="\x1E" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ASCII-delimited input | |
awk -vFS="\x1F" -vRS="\x1E" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ASCII-delimited output | |
awk -vOFS="\x1F" -vORS="\x1E" "$@" |
Dammit, that does explain something odd I was seeing :-) Nice catch!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
\x30
is0
- you want-vOFS="\x1F" -vORS="\x1E"