Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to remove all files in a directory matching a regex pattern shell

ls | grep -P "^A.*[0-9]{2}$" | xargs -d"
" rm
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell sharepoint copy file to other site collection 
Shell :: delete a file in linux 
Shell :: Creating a directory or folder in linux 
Shell :: how to make directory in ubantu 
Shell :: check gcp disk space usage 
Shell :: journalctl vacuum 
Shell :: linux command to update nodejs 
Shell :: creating a github repository from the cli 
Shell :: run bash script linux with sudo password 
Shell :: change user password on mac terminal 
Shell :: minishift admin-user addon 
Shell :: git clone depth 
Shell :: make pm2 auto-boot at server restart 
Shell :: dpkg get installed package version 
Shell :: change directory, files and sub-directories owner in linux 
Shell :: nvm install 
Shell :: Backup Restore and Upgrade Gitlab 
Shell :: install ruby linux 
Shell :: powershell t admin 
Shell :: cannot send file to server with nginx 
Shell :: supertest example 
Shell :: destroy linux with one command 
Shell :: git show unpushed commits 
Shell :: reaect native reactotron 
Shell :: read all test in golang 
Shell :: Please install mariadb package manually 
Shell :: github how to remove changes 
Shell :: ubuntu 18 does not connect to bluetooth earphones 
Shell :: node ffmpeg 
Shell :: open folder from terminal ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =