summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-02-08 21:02:23 (EST)
committer P. J. McDermott <pj@pehjota.net>2017-02-08 21:02:23 (EST)
commita345eba16845e43356bd4861bf2c6eab59cbe359 (patch)
tree7169b19cedd096efa54154f0a021c9b8d018fc5e
parentbdc35d5bb7b1b59f5bbcc4312f0617fdc1efe3fb (diff)
downloadeggshell-a345eba16845e43356bd4861bf2c6eab59cbe359.zip
eggshell-a345eba16845e43356bd4861bf2c6eab59cbe359.tar.gz
eggshell-a345eba16845e43356bd4861bf2c6eab59cbe359.tar.bz2
eshtrans/split.sh: Remove
-rw-r--r--eshtrans/split.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/eshtrans/split.sh b/eshtrans/split.sh
deleted file mode 100644
index bfc51cd..0000000
--- a/eshtrans/split.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-set -u
-
-buf="Hello, 'world'!"
-
-old()
-{
- eval "$(printf '%s' "${buf}" | awk -v FS='' -v j=0 \
- -v squote="'" -v esc_squote="'\\\\''" '
- {
- for (i = 1; i <= NF; ++i) {
- sub(squote, esc_squote, $i);
- printf("lbufv_%d='\''%s'\''\n", j++, $i);
- };
- printf("lbufv_%d='\''\n'\''\n", j++);
- }
- ')"
-}
-
-new()
-{
- eval "$(printf '%s' "${buf}" | awk -v FS='' -v j=0 \
- -v squote="'" -v esc_squote="'\\\\''" '
- {
- for (i = 1; i <= NF; ++i) {
- sub(squote, esc_squote, $i);
- printf("lbufv_%d=" squote "%s" squote "\n",
- j++, $i);
- };
- printf("lbufv_%d=" squote "\n" squote "\n", j++);
- }
- ')"
-}
-
-print_and_clear()
-{
- i=0
- while [ ${i} -le ${#buf} ]; do
- c=$(eval "printf '%sx' \"\${lbufv_${i}}\"")
- eval "lbufv_${i}="
- printf 'i: %2d, c: "%s"\n' ${i} "${c%x}"
- i=$((${i} + 1))
- done
-}
-
-old
-print_and_clear
-new
-print_and_clear