rm recursive file pattern

find . -name "*.bak" -type f -delete

4.11
9
Awgiedawgie 440220 points

                                    # print all files recursively with exstension .bak
find . -name "*.bak" -type f

# add -delete command at the end to delete them
find . -name "*.bak" -type f -delete

4.11 (9 Votes)
0
4.33
6
A-312 69370 points

                                    find . -type f -name '*.o' -delete

4.33 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
linux delete all files in folder recursive rm file extension bash delete files recursively linux delete all files in directory recursively linux delete all files and folders recursively remove all files in a directory recursively linux rm all files of extension linux remove all files and folders recursively linux recursively delete file pattern remove file extension rm file with extension unix remove all files with name recursively remove files recursively bash delete files with extension delete all files with file type recursively linux bash delete all files with extension recursively rm delete files with extension linux delete all files ends with centos delete files with extension linux remove directory with files rm recursive file pattern linux remove all files with extension in directory linux remove all file with extension recursive delete linux filetype delete all zip files recursively bash delete all files with extension coffee in directory recursively Write a script that deletes all the regular files (not the directories) with a .js extension that are present in the current directory and all its subfolders. linux delete all files by mask linux delete all files with extension in subfolders bash script remove all files with extension rm all files with extension remove all files of a certain type remove all files of a certain type linux delete all class file recursively in linux linux command to delete all files with extension find files with extension linux and delete linux remove all files with extension in subdirectories remove all files recursively linux debian remove files with extension bash remove files recursively linux delete files recursively bash delete all files with extension linux delete all gz files inf older linux delete all gz files remove all files with no extension linux remove all files with extension linux remove files with no extensions linux linux delete files with extension delete all files with a ~ at the end remove all files ending with ~ in directory rm all files with extension recursively rm remove all files with extension linux remove all file type delete all files of type older than bash bash recursively delete zip files delete file type recursively linux delete files with specific extension linux linux remove recursively all files ending with js delete all the fiels of certain extension bash remove all xslx from linux command line del all files Not ending with *.csv delete all files of type bash delete all txt files in directory ubuntu unix command line delete file with certain extension command to delete file =s with certain extensions on terminal how to remove all files with a certain file type terminal how to remove all files with a certain file type linux command remove files subdirectories linux delete all files with extension deleting files of particular extension linux remove files with extension linux delete a specific foemat files in a folder linux command remove files recursively linux linux remove files by extension recursively rm file recursively recursively remove all files with extension linux remove all files in directory with extension unix remove file recursively linux recursively delete all files with extension find and remove file with ex shell script remove files with extension shell script removefiles with extension shell script delete files with extension Remove file extension from file within dir Ask Question delete all files with extension linux delete all files of extension recursively remove files from directory recursively delete all files with the same name terminal bash delete all files of type recursively rm file ending with bash rm all files with extension delete all file ending with extension ubuntu linux remove all files with extension recursively find and delete all files with extension linux bash delete content directory extension how to delete all file with extension remove all files with extension ubuntu remove files with extension terminal remove files from subfolders by type terminal remove files from subfolders linux remove all files same extension in directory linux remove files with extension linux find and delete files with extension ubuntu find and delete files recursively remove all files with in it how to recursively delete files of a particular extension using terminal in linux how to recursively delete files of a particular extension using terminal remove all files in a directory with extension delete all the file whose extension in meta delete all files certain extension in linux recursively remove all terminal extensions remove all files with extension terminal how to remove certain file types from a directory in bash how to delete all files with the specific extension status find all file extensions in a directory and delete debian delete all files of type in directory rm files with extension
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source