On Mon, Sep 16, 2013 at 11:27 AM, James B. Byrne <byrn...@harte-lyne.ca> wrote:
> I am obviously missing something basic here but can someone explain to me what
> is wrong with the first statement, which returns nothing?
>
> $ history | grep ^su
> $ history | grep su
>  2997  su -l
>  3024  su -l
>  3050  su -l
>  3054  su -l

Someone else already pointed out the line numbers, but if you are
doing this interactively, you probably really want bash's internal
'search-history' operations (usually control-r for
reverse-search-history, but there are a bunch of options).

-- 
   Les Mikesell
     lesmikes...@gmail.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to