From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id 28BAF217BA for ; Mon, 4 Mar 2024 02:31:07 +0100 (CET) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id E90B7432DC; Mon, 4 Mar 2024 11:30:56 +1000 (AEST) Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by minnie.tuhs.org (Postfix) with ESMTPS id 2C1FE432DA for ; Mon, 4 Mar 2024 11:30:51 +1000 (AEST) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-214ca209184so2284941fac.1 for ; Sun, 03 Mar 2024 17:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709515849; x=1710120649; darn=tuhs.org; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=Z25GK9FBNpnn5TKlGjxYTInhtTFVioeqHn+x4yYbJho=; b=lB9rBBhWUveAI0FGhWisWgMUSEQePv2cCua3eoJeuEDu45qhXjA5jmspmE7ekpuNjR XJQJrYJIEZdrA0ZJ9b95ryJT6V29MICxeVKnYsbU6ZZCvK2AAgz/+wWMCMShzfmSVdVy kk4A+ie793JfpIAKmKyBkn2CGLfCljbvjzUIP2xjgaWa5nEs5KvbVSgSnP+l26jxWcVQ dUvvbKovNP8br89ovlqbBcP2wY9vQgKWHQ2UUDEJbC4YjvkhDv3Gb4dAlWt6MYAKtEQG 0Yz1pOIFdfWTm/GQR4Fz+v7oAiTzBUnxMY2uuPGfdEHdcnDGI7Cs8QfMI4do5wRBejdh ZHjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709515849; x=1710120649; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z25GK9FBNpnn5TKlGjxYTInhtTFVioeqHn+x4yYbJho=; b=oa5JpjYrDJk2ybhMs/7preqn9uJ5kl+RwbF6o0SdMQR7ssRsAlSoUbLMP+duj0L45B JIymASp6WySBnQp99IDXI3gcMqtt9EaGhM9bKaNLaubpZXVLGIKIGNCYHdhPqb5cZQdz WBJdJeH8wnE43XRcvTGK/evKwQoQFqGzI+t0Q0H752l5LAwRVLYDfsin1+V9kmbc1hIx eUN3TeTnHARVkY0an2KTlswsqzLhqfrTGDWpZfc9V28aZoA7L818p/6CEMjfTkdxGDzU wuDgRR3SqnQDDCzrMVqYwE1dZV7KvWjBrHCkGmS0c8DQdurjQbdOfPHO9boaYue7KBm1 AcWA== X-Gm-Message-State: AOJu0Yx4klSwaMzR53TsgGkoRQTC9+Hg9Y8fYrt9F4nyBQnLezsqsaAM HuIIGaE8TVeh6IsCrMAzDe6dGIJQC1tevuzaE+gi+UhJEnwA0rancIbl+EpZ X-Google-Smtp-Source: AGHT+IH08JA0DYGGZypIrSriC7fjvqZR6FrcunwB7m6XA3FiUm+i+ACCFy0TyAd/AW7L/TClbOZJag== X-Received: by 2002:a05:6870:e615:b0:220:c9cd:b2b5 with SMTP id q21-20020a056870e61500b00220c9cdb2b5mr8403488oag.1.1709515848788; Sun, 03 Mar 2024 17:30:48 -0800 (PST) Received: from [192.168.1.13] (h84.221.117.75.dynamic.ip.windstream.net. [75.117.221.84]) by smtp.gmail.com with ESMTPSA id ds19-20020a0568306c1300b006e4adeaa920sm1507535otb.46.2024.03.03.17.30.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Mar 2024 17:30:48 -0800 (PST) Content-Type: multipart/alternative; boundary="------------RgvIVrNgUF0EUKJqtaZbf6kS" Message-ID: <13abd764-984a-4c9f-8e3e-b1eb7c624692@gmail.com> Date: Sun, 3 Mar 2024 19:30:47 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Will Senn To: TUHS Message-ID-Hash: D76MM6IXPAAVDJZKJMM6DLNTPNJAISYK X-Message-ID-Hash: D76MM6IXPAAVDJZKJMM6DLNTPNJAISYK X-MailFrom: will.senn@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] regex early discussions List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This is a multi-part message in MIME format. --------------RgvIVrNgUF0EUKJqtaZbf6kS Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi All, I was wondering, what were the best early sources of information for regexes and why did folks need to know them to use unix? In my recent explorations, I have needed to have a better understanding of them, so I'm digging in... awk's my most recent thing and it's deeply associated with them, so here we are. I went to the bookshelf to find something appropriate and as usual, I've traced to primary sources to some extent. I started with Mastering Regular Expressions by Friedl, and I won't knock it (it's one of the bestsellers in our field), but it's much to long for my personal taste and it's not quite as systematic as I would like (the author himself notes that his interests are less technical than authors preceding him on the subject). So, back to the shelves... Bourne's, The Unix Environment, and Kernighan & Pike's, The Unix Programming Evironment both talk about them in the context of grep, ed, sed, and awk. Going further back, the Unix Programmer's Manual v7 - ed, grep, sed, awk... After digging around it seems like folks needed regexes for ed, grep, sed and awk... and any other utility that leveraged the wonderful nature of these handy expressions. Fine. Where did folks go learn them? Was there a particularly good (succinct and accurate) source of information that folks kept handy? I'm imagining (based on what I've seen) that someone might cut out the ed discussion or the grep pages of the manual and tape them to their monitors, but maybe I'm stooopid and they didn't need no stinkin' memory device for regexes - surely they're intuitive enough that even a simpleton could pick them up after seeing a few examples... but if that were really the case, Friedl's book would have been a flop and it wasn't :). So seriously, if you remember that far back - what was the definitive source of your regex knowledge and what were the first motivators for learning them? Thanks, Will --------------RgvIVrNgUF0EUKJqtaZbf6kS Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi All,

I was wondering, what were the best early sources of information for regexes and why did folks need to know them to use unix? In my recent explorations, I have needed to have a better understanding of them, so I'm digging in... awk's my most recent thing and it's deeply associated with them, so here we are. I went to the bookshelf to find something appropriate and as usual, I've traced to primary sources to some extent. I started with Mastering Regular Expressions by Friedl, and I won't knock it (it's one of the bestsellers in our field), but it's much to long for my personal taste and it's not quite as systematic as I would like (the author himself notes that his interests are less technical than authors preceding him on the subject). So, back to the shelves... Bourne's, The Unix Environment, and Kernighan & Pike's, The Unix Programming Evironment both talk about them in the context of grep, ed, sed, and awk. Going further back, the Unix Programmer's Manual v7 - ed, grep, sed, awk...

After digging around it seems like folks needed regexes for ed, grep, sed and awk... and any other utility that leveraged the wonderful nature of these handy expressions. Fine. Where did folks go learn them? Was there a particularly good (succinct and accurate) source of information that folks kept handy? I'm imagining (based on what I've seen) that someone might cut out the ed discussion or the grep pages of the manual and tape them to their monitors, but maybe I'm stooopid and they didn't need no stinkin' memory device for regexes - surely they're intuitive enough that even a simpleton could pick them up after seeing a few examples... but if that were really the case, Friedl's book would have been a flop and it wasn't :). So seriously, if you remember that far back - what was the definitive source of your regex knowledge and what were the first motivators for learning them?

Thanks,

Will
--------------RgvIVrNgUF0EUKJqtaZbf6kS--