delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 |
X-Spam-Check-By: | sourceware.org |
X-Authority-Analysis: | v=1.0 c=1 a=-4IkEE5x1vEA:10 a=p-7SYiBOxmkymv1uLAwA:9 a=-e4_BIO4acUn1aJu7YoA:7 a=ytDKzSmBnjwWnkALmGfCv4eyEfEA:4 |
Message-ID: | <4B8DCB6C.3010207@columbus.rr.com> |
Date: | Tue, 02 Mar 2010 21:37:32 -0500 |
From: | Paul McFerrin <pmcferrin AT columbus DOT rr DOT com> |
Reply-To: | pmcferrin AT columbus DOT rr DOT com |
User-Agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
MIME-Version: | 1.0 |
To: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | "tail" command does not work as advertised |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
The "tail +4" commands does not work as advertised. When given such command (advertised in man command), it complains it can't open the file. With the command "tail +5 -", it produces the desired output with some junk on standard output. See examples: $ ps -a | tail +5 - tail: cannot open `+5' for reading: No such file or directory ==> standard input <== PID PPID PGID WINPID TTY UID STIME COMMAND 5644 1 5644 5644 ? 18 20:24:45 /usr/bin/cygrunsrv 4928 5644 4928 4896 ? 18 20:24:45 /usr/sbin/cron I 5088 1 5088 5356 con 1003 21:02:39 /lbin/ksh 5808 1 5808 4996 con 1003 21:02:53 /usr/bin/rxvt 6036 5808 6036 5580 0 1003 21:02:53 /usr/bin/ksh 5668 6036 6036 5668 0 1003 21:32:28 /usr/bin/ksh I 5060 6036 6036 4544 0 1003 21:32:28 /usr/bin/tail 3832 5668 6036 2328 0 1003 21:32:28 /usr/bin/ps /home/Paul.$ ps -a | tail +3 tail: cannot open `+3' for reading: No such file or directory All examples are supposed to produced output from the beginning of the file. - Paul -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |