[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Head isnt working as expected
From: |
Paul Eggert |
Subject: |
Re: Head isnt working as expected |
Date: |
Thu, 01 Apr 2004 07:47:02 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Karthik Shanmugam" <address@hidden> writes:
> cat .sh_history | head -3
>
> but the result wasnt the expected one. instead it juz prints the
> first line. When I openned the .sh_history file, i found ^A^A[
> header] in the first row.
Hmm, I don't get that behavior with coreutils 5.2.1:
$ printf '\1\1[ header]\nline 2\nline 3\nline 4\n' >foo
1001-penguin $ cat foo | head -n 3
^A^A[ header]
line 2
line 3
(Note that "head -3" is obsolete and won't work on a POSIX 1003.1-2001
system.)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Head isnt working as expected,
Paul Eggert <=