From: parag_paul on
On Mar 25, 9:35 pm, stan <smo...(a)exis.net> wrote:
> parag_p...(a)hotmail.com wrote:
> > Suppose I want to list only those commands in history which has vi ?
>
> Does
>
> fc -nl -5000 | grep 'vi'
>
> produce

I am using csh. Thanks for the suggestion in ksh
From: Greg Russell on
On Tue, 01 Apr 2008 02:00:29 -0700, parag_paul(a)hotmail.com wrote:

>> > Suppose I want to list only those commands in history which has vi ?
....
>> fc -nl -5000 | grep 'vi'
....
> I am using csh. Thanks for the suggestion in ksh

history | grep "vi"