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

remove all files in a directory linux that match pattern

find . -name '*.orig' #-delete
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu releases 
Shell :: This repository has moved 
Shell :: linux unpack .tar 
Shell :: add ignored file to git 
Shell :: how to run .rpm file in linux 
Shell :: install google assistant on linux 
Shell :: how to install phpmyadmin with nginx on ubuntu 20.04 
Shell :: error: src refspec master does not match any 
Shell :: ffmpeg video size reduction 
Shell :: proxy_connect_timeout nginx ingress 
Shell :: remving merged commit 
Shell :: take sudo access inside vim 
Shell :: install apache2 
Shell :: concatenate in bash the output of two commands 
Shell :: apache install 
Shell :: get my ip address linux 
Shell :: Editing a Commit message 
Shell :: bash store script output in variable 
Shell :: The following directories are not writable by your user: mac 
Shell :: docker compose stdin_open 
Shell :: the current branch has no upstream 
Shell :: git use cat instead of less 
Shell :: mvn clean install skip checkstyle 
Shell :: how to make top bar transparent ubuntu 
Shell :: wget a file from bitbucket 
Shell :: react quill 
Shell :: update msfconsole 
Shell :: linux unity reinstall 
Shell :: libpopt install ubuntu 
Shell :: gitlab login on terminal 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =