X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: Subject: RE: Problems with 'tail -n *' Date: Wed, 29 Oct 2008 15:12:02 -0000 Message-ID: <015901c939d8$b22295e0$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Gustavo Seabra wrote on 29 October 2008 14:33: > I just noticed this one thing when using 'tail' in cygwin. For some > reason, when using a '*' so as to 'tail' multiple files at once, the > '-n' option to tail doesn't work anymore. > $ tail -2 *.dat > tail: option used in invalid context -- 2 The "-NNN" form is an abbreviation for "-n NNN". If you write it out in full, it works: $ tail -n 2 *.dat cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/