DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
how to remove all files in a directory matching a regex pattern shell
ls | grep -P "^A.*[0-9]{2}$" | xargs -d" " rm
Source by superuser.com #
PREVIOUS
NEXT
Tagged:
#remove
#files
#directory
#matching
#regex
#pattern
#shell
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit