当前位置:网站首页>Delete all files containing a keyword in the current path
Delete all files containing a keyword in the current path
2022-07-30 07:24:00 【A positive little salted fish】
1 Find all filenames containing keywords
Take "T5" as an example here
1. Use the ls command to find
ls -R | grep T5# -R show all files in the folder
2. Use the find command
find . -name "*T5*"
Second, delete the found files
find . -name "*T5*" |xargs rm -rf
xargs - build and execute command lines from standard input
Three check if there are any files left
find . -name "*T5*"
or
ls -R | grep T5# -R show all files in the folder
边栏推荐
- SSH-RSA密钥
- Machine Learning, Deep Learning Based on MATLAB 2021b
- 关于map对key自定义排序
- 自定义类加载器
- IEEE在指定期刊下搜索相关论文
- ipconfig Command Guide
- xxx is not in the sudoers file.This incident will be reported错误
- VsCode打开终端的方法
- [Quick MSP430f149] Notes on learning MSP430f149 during the game
- CLUE Model Construction Method, Model Validation and Land Use Change Scenario Prediction
猜你喜欢
随机推荐
Real-time waveform display of CAN communication data based on QT (serial eight) ==== "Sub function or new class calls ui control"
QT weekly skills (3)~~~~~~~~~ serial port addition
你不知道的JS思考题
无法完成包的安装npm ERR! Refusing to install package with name “moment“ under a package also called “moment“
【江科大自化协stm32F103c8t6】笔记之【入门32单片机及GPIO初始化参数配置】
自定义类加载器
虚拟机栈帧结构
租用服务器训练yolov3模型
顺序二叉树---实现数组的二叉树前序遍历输出
Three working modes of CPU: real mode, protected mode, long mode
xftp的简单使用
高集成度 MCU 市场增大,如何加速 BLDC 领域落地应用
Antd 树拖拽一些细节,官网没有,摸坑篇
Massive remote sensing data processing and application of GEE cloud computing technology [basic, advanced]
i++与 ++i 的区别
Difference between logical shift right and arithmetic right shift
QT连载3:基于QT和STM32H750的LORA试验平台(2)
this的指向问题
[Punctuality Atom] Simple application of sys.c, sys.h bit-band operations
JS的值和引用,复制和传递