#!/bin/sh awk 'BEGIN { print "flags" print "verbose" printf "get foo\n" printf "put Δημοσθένους.example.com aaa\n" printf "get Δημοσθένους.example.com\n" printf "put %c%c%c xxx\n", 128, 128, 128 printf "get %c%c%c\n", 128, 128, 128 printf "put xxx %c%c%c\n", 128, 128, 128 printf "get xxx\n" exit }' | ./dict_open internal:whatever write utf8_request |