User Tools

Site Tools


bash:directories:empty_all_files_in_a_directory

BASH - Directories - Empty all files in a directory

find . -name "*.dat" -type f -exec cp /dev/null {} \;

Delete all files in the directory

find . -name '*.dat' -type f | xargs rm
bash/directories/empty_all_files_in_a_directory.txt · Last modified: 2021/07/07 15:42 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki