Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #delete #files #extension
ADD COMMENT
Topic
Name
8+7 =