Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using "find"

Status
Not open for further replies.

job357

Technical User
Sep 16, 2002
106
US
Hi,
I am try to use find to tar all files in my cwd as follows:

find . -name *html -print -exec tar cvf test.tar {} \; 2>/dev/null

I want all files with an html extention as a part of their file name to be in one big tar ball.

Thanks.
 
Try
Code:
tar cvf test.tar `find -name "*.html" -print`
 
Salem,
Thanks for you response, this works fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top