Re: easy BASH question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Sep 16, 2013 at 11:27 AM, James B. Byrne <byrnejb@xxxxxxxxxxxxx> 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
     lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux