How might one achieve something similar to:
(this searches for folders smaller than 1MB in size and removes them)
on a Windows server? I'm having a hunt for some powershell but my knowledge is pretty limited..
Code:
du | awk '$1 <= 1000000 { print "rm -rf \"" substr($0, length($1)+2) "\""}' | sh
on a Windows server? I'm having a hunt for some powershell but my knowledge is pretty limited..