DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
ubuntu remove all folders but keep some
find ./myfolder -mindepth 1 ! -regex '^./myfolder/test2(/.*)?' -delete
Source by unix.stackexchange.com #
PREVIOUS
NEXT
Tagged:
#ubuntu
#remove
#folders
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit