On Sun, 24 Jun 2018 00:32:59, Thomas Wolff wrote:
Why not awk? Because I am not familiar with awk.
Should be a simple script, something like this: $ awk -F ';' '{printf "{CAT_%s, 0x%s, %d},\n", $3, $1, $4}' UnicodeData.txt {CAT_Lo, 0x3400, 0}, {CAT_Lo, 0x4DB5, 0}, {CAT_Lo, 0x4E00, 0}, {CAT_Lo, 0x9FEF, 0}, -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple