nss attributes, attrib and recursion..
Is there a switch for attrib to make it recurse through a file structure?
I want to clear out a load of files that have some attributes set (old roaming profile directories on an nss volume) but need to take off the attributes before rm.
i.e. a bit like the old dos FLAG *.* N /S
I know I could use something like "find . -exec /sbin/attrib --clear=all {} \;" but that seems very heavy and wasteful...running attrib for each and every file...
a) there are thousands of files in a roaming profile
b) I want to use find to locate the directories!;-)
Any suggestions?
Thanks
David
|