[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Problem with head



On Wed, Jan 12, 2000 at 01:26:39PM +0530, Ajit, Kumar   (IE10) wrote:
> Hi,
> 	I use head command to get information about my file. If I use head
> with a ascii file e.g. head filename.c it's OK. I am getting the first 10
> lines of the file. But if I use it with any binary format, it's showing the
> 10 lines BUT also this-
> konsolekonsolekonsolekonsole
> user@host homedir]$konsolekonsolekonsolekonsole
> Can somebody tell me what's happening.

head tries to write the contents of the binary file to stdout and that
data goes through konsole, which interprets them as special escape
sequences, resulting in chaos.

Never try to cat a binary file to a terminal on UNIX.

	-Arun
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.