Tag Info

Hot answers tagged


Try find o -delete or find o -depth -delete -depth tells find to go to the deepest part of the directory tree first, and then work its way back up.  The man page says, "Use of -delete automatically turns on the -depth option."  If your version of find doesn't support -delete, try find o -depth -exec rm -rf {} ";"


Your question is still confusing, but I think I know what you want to do. Take a look at the rsync command. For example: rsync -av --delete css/addons/myaddon/ css_server_1/cstrike/ or something similar should do the trick for you. The important thing is the --delete option which will remove extraneous files from css_server_1/cstrike/ that are not in ...

Only top voted, non community-wiki answers of a minimum length are eligible