Answers:
% find UPMOST_RELEVANT_PATH -name ".shadowFileList" -delete
显然,对您要丢弃的任何其他文件名执行相同的操作...
find . ! -name "*.xyz" -delete
,也看到stackoverflow.com/questions/25136041/...
find . -type f -not -name "*.hpp" -not -name "*.h" -not -name "*.inl" -delete
保留了文件夹。