Path: utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!nic.MR.NET!shamash!com50!mscunx!hawkmoon!det From: det@hawkmoon.MN.ORG (Derek E. Terveer) Newsgroups: alt.sources Subject: Re: cgname - collect file names from {e,f,}grep output Summary: a very simple alias for "e like" stuff Message-ID: <1011@hawkmoon.MN.ORG> Date: 28 Jun 89 06:40:47 GMT References: <3687@orca.WV.TEK.COM> <929@sering.cwi.nl> Organization: One of the Eternal Champions - Richfield, MN, 554232523, USA Lines: 22 In article <929@sering.cwi.nl>, fmr@cwi.nl (Frank Rahmani) writes: > #!/bin/sh > fgrep $1 *.[ch] | cut -d: -f1 | sort | uniq > /tmp/123 ; e +/$1 `cat /tmp/123` This seems kind of long.... > 'E' is an interface for vi (was posted on comp.sources.unix) that > maintains durable history files in the directory where 'e' was started. One very easy way of remembering the last set of files edited by vi (NOT serveral sets, but just the last one) is to use the ksh alias: alias e=". /usr/local/e" where /usr/local/e (for example) is: vi $* -- Derek Terveer det@hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det w(612)681-6986 h(612)688-0667 "A proper king is crowned" -- Thomas B. Costain