Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Posts
    533

    found index files in home direcotry

    Hello,

    I need to found all of index.html files in my /home directory.

    how can I found these files ?

    like this:
    /home/a/public_html/index.html
    /home/a/public_html/folder/index.html
    /home/c/index.html



    regards,

  2. #2
    Join Date
    Oct 2007
    Location
    Northampton, UK
    Posts
    553
    Hi,

    This should do it --

    find /home -name index.html -print

    (you probably don't need the -print)

    Matt
    SysAdminMan - Asterisk PBX hosting - FreePBX, A2Billing and Elastix

  3. #3
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,952
    That may return a lot of results, so you might want to push it into a text file instead of priting to the screen.
    Code:
    find /home -name "index.html" > files.txt
    Having problems, or maybe questions about WHT? Head over to the help desk!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •