tail in 1003.2 Commands

std-unix at ut-sally.UUCP std-unix at ut-sally.UUCP
Wed Jan 28 13:18:09 AEST 1987


From: decwrl!nsc!nsc!nsta!instable.ether!amos (Amos Shapir)
Date: Mon, 19 Jan 87 16:54:53 -0200
Organization: National Semiconductor (Israel) Ltd.

>From: colonel at sunybcs.UUCP (Col. G. L. Sicherman)
>I'd like to see a program that does what tail does, except that if
>you say "tail +n" it skips the first n units.  You could call it
>something else--maybe "trail."  And how about a "head" with the same
>syntax as tail/trail?  ("head xx file; tail xx file" = "cat file")

Try 'dd bs=n skip=1' - actually, what you need is a 'line' modifier to
dd, in addition to chars, blocks and k.
-- 
	Amos Shapir
National Semiconductor (Israel)
6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel
(011-972) 52-522261  amos%nsta at nsc 34.48'E 32.10'N

Volume-Number: Volume 9, Number 25



More information about the Mod.std.unix mailing list