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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compressing directories

Status
Not open for further replies.

RJSHA1

Programmer
Apr 12, 2001
66
GB
Hi there I would like to compress a range of diretories, and have been trying to use a find statement like this

compress `find . - type d -mtime +2 -print`

As you can guess this does not work, I don't know sed or awk very well - should I be using them.

Can someone please point what I amm doing wrong or what else I should try

Thanks
 
I don't think this will work. What I would suggest would be to tar the directories and then compress the tar files, removing the original directories once you're satisfied that the tars are valid. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top