watch hebrew?

watch hebrew?

Amos Shapira amos.shapira at gmail.com
Thu Jul 2 14:50:40 IDT 2009


2009/7/1 Yuval Hager <yuval at avramzon.net>:
> if I try to run
> $ watch "echo שלום123"
> I just get the '123' on the page, Hebrew characters stripped.
>
> man watch says:
>>       Non-printing characters are stripped from program output.
>>       Use "cat -v" as part of the  command  pipeline if you want to see
>>       them.
>
> but if I try
> $ watch "echo שלום123|cat -v"
> I get something like:
> M-WM-)M-WM-^\M-WM-^UM-WM-^]123
>
> Any way to idea Hebrew characters under watch?

Not a solution but a possible work-around might be a simple shell loop:

while true
do
  clear
  date
  echo "123םולש"
  sleep 2
done

--Amos



More information about the Linux-il mailing list