[Users] Counting characters
freebsd at grem.de
Thu Dec 6 19:57:29 CET 2012
On Thu, 6 Dec 2012 13:04:10 -0500
Jerry <jerry at seibercom.net> wrote:
> On Thu, 6 Dec 2012 16:20:09 +0000
> Neil Bothwick articulated:
> > On Thu, 6 Dec 2012 11:05:40 -0500, Jerry wrote:
> > > I occasionally use claws-mail to send text messages to cell phone
> > > devices. These have to be under 140 characters in total (or maybe
> > > 160 -- I forget). Anyway, does anyone know of a quick way to
> > > determine the number of characters in the message other than
> > > physically counting them?
> > Try this as an action
> > | kdialog --msgbox "Characters: $(wc -c)"
> > If you don't use KDE, replace kdialog with your desktop's
> > equivalent.
> You win the prize for best suggestion -- almost. While it certainly
> does work, an error window pops up with this ominous message:
> --- Ended: kdialog --msgbox "Characters: $(wc -c)"
> kdialog(25959)/KSharedDataCache: Unable to find an appropriate lock
> to guard the shared cache. This *should* be essentially
> impossible. :( kdialog(25959)/KSharedDataCache: Unable to perform
> initial setup, this system probably does not really support
> process-shared pthreads or semaphores, even though it claims
> otherwise. kdialog(25959)/KSharedDataCache: Unable to unmap shared
> memory segment 0x8095c3000
> This is not really a problem since I would only require this function
> a few times a month.
Or you could just write your SMS/Text messages in external editor
(emacs, vi, gedit, whatever) that provides such a functionality
(Shift-Ctrl-X by default).
More information about the Users