Linux-删除一级目录下子目录-github例子

查看包含git和github的目录有哪些

java 复制代码
find /opt/ai-git-resources -mindepth 2 -maxdepth 2 -type d \( -name '.git' -o -name '.github' \) -print

执行删除git和gihub的所有git和github目录

java 复制代码
find /opt/ai-git-resources -mindepth 2 -maxdepth 2 -type d \( -name '.git' -o -name '.github' \) -exec rm -rf {} +
相关推荐
Johny_Zhao4 小时前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
砖厂小工16 小时前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github
程序员鱼皮16 小时前
又一个新项目完结,我要出海了!
ai·github·开源项目
徐小夕17 小时前
pxcharts-vue:一款专为 Vue3 打造的开源多维表格解决方案
前端·vue.js·github
Moment17 小时前
想要长期陪伴你的助理?先从部署一个 OpenClaw 开始 😍😍😍
前端·后端·github
我叫黑大帅18 小时前
前端如何利用 GitHub Actions 自动构建并发布到 GitHub Pages?
前端·面试·github
HelloGitHub20 小时前
这个年轻的开源项目,想让每个人都能拥有自己的专业级 AI 智能体
开源·github·agent
刘发财1 天前
弃用html2pdf.js,这个html转pdf方案能力是它的几十倍
前端·javascript·github
sunny8651 天前
Claude Code 跨会话上下文恢复:从 8 次纠正到 0 次的工程实践
人工智能·开源·github