From c5660ab179171a7a710eba66f1bcf7836c722c6d Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 19 Sep 2024 19:25:55 +0200 Subject: [PATCH] Print each entry in hex and as string --- pgcollate | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pgcollate b/pgcollate index 1c59bfb..374cfdb 100755 --- a/pgcollate +++ b/pgcollate @@ -29,4 +29,10 @@ for s in ( db.commit() csr.execute("select * from t_pgcollate order by t") for r in csr: - print(r) + for c in r[0]: + print(f"{ord(c):02x} ", end="") + print("- ", end="") + for c in r[0]: + print(c, end="") + print("") +