[CentOS] easy BASH question
Les Mikesell
lesmikesell at gmail.com
Mon Sep 16 17:07:42 UTC 2013
On Mon, Sep 16, 2013 at 11:27 AM, James B. Byrne <byrnejb at 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
lesmikesell at gmail.com
More information about the CentOS
mailing list