[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A bug in cut?
- To: Development Discussions <developer at arabeyes dot org>
- Subject: Re: A bug in cut?
- From: Behdad Esfahbod <behdad at cs dot toronto dot edu>
- Date: Wed, 19 May 2004 13:13:50 -0400
On Wed, 19 May 2004, Munzir Taha wrote:
>
> [mimo at localhost mimo]$ cut -b1 file3
> �
> �
> �
> �
> [mimo at localhost mimo]$
>
> Can you notice the ladder shape, the spaces embedded to the left. Even the
> prompt is affected. cut -b should only display the first byte of each line
> and they should be aligned in one column. I am sorry if I can't explain it
> well but I will try again if it's still not clear.
It's quite possible that the problem is with your terminal
emulator. You can discover that by redirecting the output from
cut to a file, and check the file using hexdump, or simply the
size of the file.
--behdad
behdad.org