C
C
copyerfiled2017-01-20 17:32:59
linux
copyerfiled, 2017-01-20 17:32:59

How to delete files in the list or files that are in the output?

Good afternoon!
How to remove all files that will be passed to the output using find
find / -name '*NAME*' 2>/dev/null
Or remove files by list
find / -name '*NAME*' 2>/dev/null > spisok.txt

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2017-01-20
@copyerfiled

It would be more correct to use the built-in find -delete
find / -name '*NAME*' -delete 2>/dev/null

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question