grep

当前文件夹中删除除了install_agent之外的文件

[oracle@mysql ~]$ ls -lrt
total 1478408
-rwxr-x--- 1 oracle oinstall 747358549 Sep 30  2016 agentcore.bin
-r-xr-x--- 1 oracle oinstall    230027 Sep 30  2016 zip
-r-xr-x--- 1 oracle oinstall    145976 Sep 30  2016 unzip
-r-xr-x--- 1 oracle oinstall      4161 Sep 30  2016 agent.rsp
-rw-rw---- 1 oracle oinstall       179 Sep 30  2016 agentimage.properties
-r-xr-x--- 1 oracle oinstall     68283 Sep 30  2016 agentDeploy.sh
drwxr-x--- 3 oracle oinstall      4096 Jul 25 21:15 oradiag_oracle
-rwxr-x--- 1 oracle oinstall       274 Aug  3 06:28 plugins.txt
drwxr-x--- 2 oracle oinstall      4096 Aug  3 06:28 plugins
-rw-r----- 1 oracle oinstall 765835958 Aug  3 08:40 13.2.0.0.0_AgentCore_226.zip
-rw-r----- 1 oracle oinstall     77686 Aug  3 08:50 agentDeploy_2019-08-03_08_50_26.log
-rw-r----- 1 oracle oinstall        52 Aug  3 08:50 agentDeploy_2019-08-03_08_50_26.err
-rw-r----- 1 oracle oinstall        50 Aug  3 08:52 agentDeploy_2019-08-03_08_52_26.log
-rw-r----- 1 oracle oinstall       103 Aug  3 08:52 agentDeploy_2019-08-03_08_52_26.err
drwxrwx--- 2 oracle oinstall      4096 Aug  3 08:54 locks
drwxrwx--- 2 oracle oinstall      4096 Aug  3 08:54 ContentsXML
-rw-r----- 1 oracle oinstall       127 Aug  3 08:56 agentDeploy_2019-08-03_08_53_05.err
-rw-r----- 1 oracle oinstall       364 Aug  3 08:58 plugins.txt.status
-rw-r----- 1 oracle oinstall     85169 Aug  3 09:00 agentDeploy_2019-08-03_08_53_05.log
drwxr----- 2 oracle oinstall      4096 Aug  3 09:51 bea
drwxrwx--- 3 oracle oinstall      4096 Aug  3 20:08 backup
drwxrwx--- 2 oracle oinstall      4096 Aug  3 20:08 logs
drwxr-x--- 2 oracle oinstall      4096 Aug  3 20:34 install_agent
[oracle@mysql ~]$ pwd
/home/oracle
[oracle@mysql ~]$ ls |grep -v ^in
13.2.0.0.0_AgentCore_226.zip
agentcore.bin
agentDeploy_2019-08-03_08_50_26.err
agentDeploy_2019-08-03_08_50_26.log
agentDeploy_2019-08-03_08_52_26.err
agentDeploy_2019-08-03_08_52_26.log
agentDeploy_2019-08-03_08_53_05.err
agentDeploy_2019-08-03_08_53_05.log
agentDeploy.sh
agentimage.properties
agent.rsp
backup
bea
ContentsXML
locks
logs
oradiag_oracle
plugins
plugins.txt
plugins.txt.status
unzip
zip
[oracle@mysql ~]$ ls |grep -v ^in|xargs rm -rf
[oracle@mysql ~]$ ls
install_agent

posted @   beawh  阅读(114)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示