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.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI autolearn=no autolearn_force=no version=3.4.4 Received: from tb-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id E7B302C122 for ; Mon, 30 Sep 2024 22:56:59 +0200 (CEST) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id DC39133344 for ; Mon, 30 Sep 2024 16:56:58 -0400 (EDT) (envelope-from bounce.mM4bb54202bb487915e0bad6dd.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id D7F6B27AAA8B; Mon, 30 Sep 2024 16:56:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :message-id:date:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:subject:list-unsubscribe; s=dkim-1; t= 1727729818; x=1727816218; bh=XxnTdrjqfVYLWWvmCtzP3c9vAsOlrv4Mljo ny+qM/IE=; b=WZ/DPwONo/z614xds0feOzXjStLj8UgaPqLCXbSTNZaXHuhJC4g ueFZ/sOrAf1Jh+cz8v+KRbFlJIiFpNBEunqBbwdetm5g31xJXbh1h92xlgu7pU9Z t0qfp3J6wYxpStwaPKF/0RMhEdUHaOwM+CcW3CSyrpVth5cEJY7yiPeE= From: kalterdev@gmail.com To: 9fans <9fans@9fans.net> Message-Id: <17277298140.09bE8.203439@composer.9fans.topicbox.com> Date: Mon, 30 Sep 2024 16:56:54 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=17277298141.11Ee6deff.203439 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 865fb904-7f6e-11ef-9cc8-23142b2d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZGE0NjliZTNiMDIxNzIwNy1NNGJiNTQyMDJiYjQ4NzkxNWUwYmFk?= =?UTF-8?B?NmRkPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] grep: How to filter by plain, non-regexp, string? List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M4bb54202bb487915e0bad6dd:1:CofZpARh5ola1iG0q9748j4BTcqM9g_D5U4NOsTGPAE --17277298141.11Ee6deff.203439 Date: Mon, 30 Sep 2024 16:56:54 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The general problem is to print lines that contain a string. The content of the string could be taken from anywhere. It could be a filename or user input. In POSIX world, people do grep -F. Plan 9's grep, though, doesn't have this option. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tda469be3b0217207-M4bb54= 202bb487915e0bad6dd Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --17277298141.11Ee6deff.203439 Date: Mon, 30 Sep 2024 16:56:54 -0400 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The general problem is to print lines that con= tain a string. The
content of the string could be taken fro= m anywhere. It could be a
filename or user input.

In POSIX world, people do grep -F. Plan 9's gre= p, though, doesn't have
this option.
= --17277298141.11Ee6deff.203439--