Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu remove all folders but keep some

find ./myfolder -mindepth 1 ! -regex '^./myfolder/test2(/.*)?' -delete
Comment

PREVIOUS NEXT
Code Example
Shell :: screen quit session 
Shell :: linux time wrong 
Shell :: how to uninstall sticky notes in ubuntu 
Shell :: uninstall photos app windows 10 
Shell :: delete commit from pr 
Shell :: github remote permisiion denied on git push 
Shell :: igraph 
Shell :: vagrant run paralel 
Shell :: fish alias 
Shell :: how to install unsigned drivers on windows 10 
Shell :: install pyyaml ubuntu 
Shell :: git add all except one file 
Shell :: how to get directory size in linux 
Shell :: ubuntu move all files in directory 
Shell :: install prettier npm 
Shell :: wp gitignore 
Shell :: echo  
Shell :: homebrew version 
Shell :: Invalid response body while trying to fetch 
Shell :: brave browser install on ubuntu 
Shell :: Installing the virtualenv module 
Shell :: extract tar.xz linux 
Shell :: ubuntu version command line 
Shell :: linux dark mode 
Shell :: make shortcut folder in htdocs 
Shell :: shell script mac 
Shell :: git files change from commit 
Shell :: npm morgan install 
Shell :: how to start mongodb server in ubuntu 
Shell :: linux cpu power install 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =