Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rm -rf except

ls | grep -v 'file-to-keep' | xargs rm
Comment

PREVIOUS NEXT
Code Example
Shell :: shell save variable 
Shell :: disk not showing mac command line 
Shell :: git reset uncommitted changes 
Shell :: linux count lines csv files 
Shell :: chakraUI 
Shell :: openzeppelin install 
Shell :: linux mint 
Shell :: git add and commit in one command 
Shell :: creating a branch from a commit 
Shell :: kill process by name 
Shell :: bash concatenate string variables 
Shell :: upload file ssh terminal 
Shell :: npm install tough-cookie 
Shell :: linux add icon to .desktop file 
Shell :: docker run commands 
Shell :: Docker: Copying files from Docker container to host 
Shell :: command to find out my git head version 
Shell :: npm checkup 
Shell :: deno install windows 
Shell :: to create repo from cmd 
Shell :: bash loop over files with extension 
Shell :: environment variable setup 
Shell :: bash read command examples 
Shell :: nextjs start production 
Shell :: increase swap size ubuntu 
Shell :: folder open in command line 
Shell :: openjdk-17-jdk 
Shell :: open command in linux 
Shell :: How to delete files in linxu terminal 
Shell :: le wagon setup 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =