Monday, November 13, 2017

Find and delete files


Find par2 files starting from current dir, and print the results of the find
find . -type f -name "*.par2" -print


Find par2 files starting from current dir, and forcibly remove (rm -f)
find . -type f -name "*.par2" -exec rm -f {} \;


No comments: