This is a Scala script that reads a hex string from the system clipboard and compute the length of it.
It's mainly a utility for blob. Our data is stored in Cassandra (or ScyllaDB) as blob, but sometimes we need to analyze the data.
- Install
scala-cli
in your system. - Copy the hex string to your clipboard.
- Run the script via
scala-cli hex-length.scala
.