On Wednesday 01 July 2009 16:30:26 Peter Humphrey wrote:
> Hello list,
>
> Can anyone explain this to me?
>
> $ /bin/grep -r hmenu *html
> index.html:                     <div id="hmenu">
> master.html:                    <div id="hmenu">
> pictures.html:                  <div id="hmenu">
>
> $ /bin/grep -r hmenu pages/*html
> pages/community.html:                   <div id="hmenu">
> pages/contacts.html:                    <div id="hmenu">
> pages/history.html:                     <div id="hmenu">
> pages/music.html:                       <div id="hmenu">
> pages/news.html:                        <div id="hmenu">
> pages/people.html:                      <div id="hmenu">
> pages/pictures.html:                    <div id="hmenu">
>
> Grep is clearly disobeying the recursion command. I started noticing this a
> few days ago, and it's making maintenance of this directory hard work.

You equally clearly do not understand how recursion works. You told it to grep 
through all the html files starting from pages/ and it did so.

You did not tell it to start from pages/.. so why do you think it should do 
so?

-- 
alan dot mckinnon at gmail dot com

Reply via email to