SUMMARY: Pb with Head

From: yves.lambert@icdc.caissedesdepots.fr
Date: Thu Nov 12 1998 - 10:25:50 CST


My original problem was :

I have a file with only one raw of 1401 bytes name toto.ori

I made the command line:

head -1 toto.ori > toto.new.

The result file is only 1023 bytes

Many Thanks to:
Olivier GIRAUD : olivier.Giraud@cedelgroup.com
Michael Kriss : kriss@fnal.gov

The raison is:
there is a system-wide default limiting the size of a line to 1024).
The new file contains 1023 plus EOF.

The solution is to rewrite the command head to avoid this limitation.

Yves LAMBERT
Informatique CDC
DFCI: Cellule Systeme Unix,
10 place de Catalogne, 75014 PARIS
01-40-57-79-78
email: yves.lambert@icdc.caissedesdepots.fr



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:52 CDT