From c39fd43096d6a6f3650fdae30435d94665e70ff0 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 8 Aug 2016 11:14:14 -0700 Subject: [PATCH] add script to count chars on clipboard --- count-chars | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 count-chars diff --git a/count-chars b/count-chars new file mode 100755 index 0000000..bdd99fa --- /dev/null +++ b/count-chars @@ -0,0 +1,3 @@ +#!/bin/sh + +pbpaste | ruby -e 'puts ARGF.read.length'