From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15694 invoked from network); 5 Jul 2021 02:39:00 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2021 02:39:00 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 716A59C9F0; Mon, 5 Jul 2021 12:38:49 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 2EA829C9F3; Mon, 5 Jul 2021 12:38:24 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (1024-bit key; unprotected) header.d=ccc.com header.i=@ccc.com header.b="g7B5Fc7I"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 8A2F99CA23; Mon, 5 Jul 2021 12:38:15 +1000 (AEST) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by minnie.tuhs.org (Postfix) with ESMTPS id 7C7459CA3F for ; Mon, 5 Jul 2021 12:38:12 +1000 (AEST) Received: by mail-qv1-f54.google.com with SMTP id fi7so7133952qvb.0 for ; Sun, 04 Jul 2021 19:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V1nyqaY+OktR0DxvqAo4xUzR1UlKYEuBGEo+xFqlRyM=; b=g7B5Fc7IlE59hCiU/2kqpwodprG9rXGr0rxlnv4PR7jFxvhz4mVUWwl968lLagb1uV 1yRs92+qynNjo2NxBM2kzgEsoxvci+N77OJpIqNzKIe0lW7SC+WM432Ptqrw6ObqRfME tfBcDiL2vbwVbh2s2uDahzGeAVS/mftVQIi2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V1nyqaY+OktR0DxvqAo4xUzR1UlKYEuBGEo+xFqlRyM=; b=lDZtmof9L1040pfMMLwVwk9aj5lZNs7H1Nnp4j+v8Pv+ZhuVpywesfAKUGMR17QQ/3 6OQx1SMas72vy/tnMMbhODjClkALtceQQgDpAOncw+00TW2Q/24nAvIRyna2lZdr9Y4w ToOv/ACXzGllzKZUQdaS0u0oaMx4a07x6i/o1/y9M1TSEDMAPIHS4uCug5z6SGkg/Iyj 38Awc5EsrbCm9X2mN9vg+lL7The11fk23oCopwai2EdOewB252mjw+Fdibtq0EYNBYut sW9/N08tlMWmcYD7KOfQkAebdrIabIZ1dBAAa5takwuXcRXBmr9RhBzuS/1JRZyTCpFA eBiA== X-Gm-Message-State: AOAM531EAz1WHhZWCbwQjBICYe+xptYcZ82PHl1vx2eTu8N38WTmnl2J EXLgFiCjxdWq9rStRjFcdEVU71nwMP8b2OYbgz187W/rSjg= X-Google-Smtp-Source: ABdhPJxakp8ZzhWORiKM8cI08uRhD1IiEeLsjMtVUN+FSVK3kWGArzIw3H5knvTT74zKktf4MJ+F9oxMVBtANks0sAk= X-Received: by 2002:a05:6214:1d0c:: with SMTP id e12mr10724838qvd.40.1625452691046; Sun, 04 Jul 2021 19:38:11 -0700 (PDT) MIME-Version: 1.0 References: <06737C14-1122-4832-BCAA-A37B242F69E4@me.com> In-Reply-To: From: Clem Cole Date: Sun, 4 Jul 2021 22:38:00 -0400 Message-ID: To: Noel Hunt Content-Type: multipart/alternative; boundary="0000000000003fd24b05c6573286" Subject: Re: [TUHS] [tuhs] The Unix shell: a 50-year view X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Unix Heritage Society mailing list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000003fd24b05c6573286 Content-Type: text/plain; charset="UTF-8" Noel. Pls check the TUHS archives and I think you will see sed does yet exist in 6th edition when Joy wrote head in 1977. Certainly not yet at UCB. On Sun, Jul 4, 2021 at 9:34 PM Noel Hunt wrote: > > But note that when wnj wrote head(1), Joy followed the > > famous `Unix Philosophy' of doing one (small) job > > well. Which means he did not add a feature *i.e.* > > abusing, an old program, like cat(1), and add some new > > switch to it that that told the program stop outputting > > after n lines. Instead Joy wrote a simple new tool. > > He didn't need to abuse any existing program by adding new > flags or the like; unless I am mistaken, `sed Nq', for some > number `N', does exactly what `head -N' would do on a single > file, obviating the very need for head(1). > >> -- Sent from a handheld expect more typos than usual --0000000000003fd24b05c6573286 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Noel.=C2=A0 Pls check the TUHS archives and I think you w= ill see sed does yet exist in 6th edition when Joy wrote head in 1977.=C2= =A0 Certainly not yet at UCB. =C2=A0

On Sun, Jul 4, 2021 at 9:34 PM Noe= l Hunt <noel.hunt@gmail.com&g= t; wrote:
> But not= e that when wnj wrote head(1), Joy followed the
> famous `Unix Philos= ophy' of=C2=A0 doing one (small) job
> well.=C2=A0 =C2=A0Which me= ans he did not add a feature *i.e.*
> abusing, an old program, like c= at(1), and add some new
> switch to it that that told the program sto= p outputting
> after n lines.=C2=A0 Instead Joy wrote a simple new to= ol.

He didn't need to abuse any existing program by adding newflags or the like; unless I am mistaken, `sed Nq', for some
number= `N', does exactly what `head -N' would do on a single
file, obv= iating the very need for head(1).

--
Sent from a handheld expect more typos t= han usual
--0000000000003fd24b05c6573286--