Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

find exclude specific file

# find everything but not html
find -type f -not -name *.html

# find everything in /home but not txt and remove them
find /home -type f -not *php -exec rm {} ;
 
PREVIOUS NEXT
Tagged: #find #exclude #specific #file
ADD COMMENT
Topic
Name
8+5 =