2

How do I write a command that searches the /var/www directory for all files with the name ".htaccess" and outputs the full location/path to each of the .htaccess files into a file?

This would save me a lot of time if this is possible with a unix command. I am running debian, lenny if that helps.

1 Answer 1

4
find /var/www -name .htaccess > yourfilelist 

will do this. For more details, see man find.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.