Version 3 An even better method is: find “$target” -type f -exec chmod -c “$mode_files” {} \; \ -or -type d -exec chmod -c “$mode_dir”
Continue readingCategory: One-liners
Recursive file/directory change-detection
Disclaimer This article explores a way in which an approximate “fingerprint” of a file tree can be created! If all you want is to detect
Continue readingDetect number of CPUs on a machine
UPDATE: Steven pointed out (very nicely) that there’s no need for cat in this picture, grep would do just fine on its own. So, thanks
Continue reading