delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/03/12:23:02

Message-Id: <199906031622.LAA00527@darwin.sfbr.org>
Date: Thu, 3 Jun 1999 11:22:05 -0500 (CDT)
From: Jeff Williams <jeffw AT darwin DOT sfbr DOT org>
Subject: tail -n vs tail --lines=n
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: dtmail 1.2.0 CDE Version 1.2 SunOS 5.6 sun4m sparc
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id MAA08303
Reply-To: djgpp AT delorie DOT com

I often encounter the following problem with tail under both DOS and bash.
I have not figured out how to reliably produce this behavior, but it
happens often enough that I wanted to ask if others have seen it.

Setup: MS-DOS 5.0,
 djgpp v2.02,
 bash 1.14.7(1)
[Nothing
 special about the number of lines requested in this example].


TIA,
jtw

------

% tail --version
tail (GNU textutils) 1.22

% tail -8 foo.bar
c:/djgpp/bin/tail.exe: invalid option -- 8
Try `c:/djgpp/bin/tail.exe --help' for more information.

% tail --lines=8 foo.bar
==> foo.bar <==
  1   134.63  2540.51   210.60    34.53    18.34  3086.23
  2   134.65  2555.24   205.66    14.79    17.71  3086.25
  3   134.54  2516.63   204.83    30.05    31.21  3086.25
  4   134.52  2518.76   201.28    32.31    31.33  3086.26
  5   134.19  2520.67   207.83    24.23    23.75  3086.25
  6   134.36  2514.13   214.63    46.84    11.85  3086.25

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019