From owner-freebsd-questions@freebsd.org Mon Oct 24 18:22:26 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C85F8C1F22D for ; Mon, 24 Oct 2016 18:22:26 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8968DC08 for ; Mon, 24 Oct 2016 18:22:26 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id t192so9457440ywf.0 for ; Mon, 24 Oct 2016 11:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=areUgVpIQQfXkYfsdiVcidkN8d8M0sCueP+4ok/2OSY=; b=aBGTZRgA6hYBePpKikanIzqE7cyL2tOKp3BBmHV4+QhkJXSBk6wxuhXIfnlZjBursJ 4PXkkAMI2deThHHH4UHGpaeDQDJfxWACqTdvmUixauv/UWJQ00gXDgwin41jwEVHytPR ByLDPO5pA7hCImxhIkLRIwtljE8meGpaF0H4QgbQvkNIEexiWxzl4+kUY0N3Q/c8uhxb u4VWUisUei9k/R66CIl36Bd/h/gsoU3sXmKCbC1JLp+sEWdNzO5JpVt9qWX3vP0l+0Rq TpR/NIIgW643D4cXxMG+1JuXx7ApS06DA/g97KoUlSGB24+407enxYF4Xz1bmaW7fjvB JMQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=areUgVpIQQfXkYfsdiVcidkN8d8M0sCueP+4ok/2OSY=; b=jps0ubRhQme5MDoesXbs1sFg5JMXUFCwnpTZrLtDeP5We6DfHORpfUUAQAPY+6QSOa ST+O5W8YlaBGhrfALqLBTumWYiZg5L8EcgeH9eIe/v8ydA7L16YCAZ1ZFb6Bk+WZNkW7 TWmvsIzXxbCOPftPLQakpKDzIKZ1NZQeKXJF9LZYM5foNT7xD7u0obiIBrp0PB9LNNjk eE+miO7CSjGfvaG4bQuHVRiOmbtsHSWXNS8KQXTZJY5F6NXRS/XlNnlNOkzCIqehO+8P rwQPphHt57QmakpZqBUJU8qii6KrgjRwizTMs6rdfbhq0wreirPYyBFmfX7oJKBy811y Oljg== X-Gm-Message-State: ABUngvd3JKtoeaN4naZck6gfI4lbueXWo47Uaqn25/Xmo1QRRP23dyBttB+qC/WPQU36Ig== X-Received: by 10.107.9.136 with SMTP id 8mr13353441ioj.204.1477333345647; Mon, 24 Oct 2016 11:22:25 -0700 (PDT) Received: from [10.0.10.3] (cpe-24-165-204-240.neo.res.rr.com. [24.165.204.240]) by smtp.googlemail.com with ESMTPSA id g72sm1831368itc.5.2016.10.24.11.22.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 11:22:25 -0700 (PDT) Message-ID: <580E516D.7060502@gmail.com> Date: Mon, 24 Oct 2016 14:22:37 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Polytropon CC: Freebsd Questions Subject: Re: csh history search References: <580E2B4F.4000003@gmail.com> <20161024192356.051bb38d.freebsd@edvax.de> In-Reply-To: <20161024192356.051bb38d.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2016 18:22:26 -0000 Polytropon wrote: > On Mon, 24 Oct 2016 11:39:59 -0400, Ernie Luzar wrote: >> Hello List; >> Reading this section "History substitution" in csh(1) seems to indicate >> I can pull up a previous command from the history list. >> >> Lets say that a while back I issued this command >> ping -c 4 hometown.jones.domain.com >> >> Now I would like to retrieve that domain name from the history list. >> >> On the command line I enter !?jon >> The complete ping command is retrieved and automatically executed. >> >> I don't want the found command automatically executed, I just want the >> found command inserted to the command line being visible so I can >> manually modify it before choosing to execute it. >> >> I could not find any info in csh(1) about auto exec or how to stop it. >> Hoping someone who uses this csh function could help me out. > > Start by typing the first few characters of the command, e. g. > > % ping_ > > then use the up arrow to browse through all commands starting > with "ping"; if "ping -c 4 hometown.jones.domain.com" was the > last ping command executed, it will show up immediately, and > you can start editing the command (Ctrl+right to word-jump, > or End Ctrl+W to erase the last word, just as you prefer). > > The more "words" (or characters) you have at the beginning > of the command line, the more "precise" the search results > will be ("ping" is more "precise" than "p"). > > For more sophisticated searching, you could write a simple > wrapper around "history | grep" (including a grep -v to remove > the search itself from the search result); this topic has been > discussed on the list, and you can surely find working code > in the archive. > ping_ returns this message ping_: Command not found % ping_ returns this message %: Too many arguments What "subject" in the questions archive list should I search on to find the thread talking about searching the command history list?