Monday, 3 February 2020

Ubuntu how to delete all files in current folder and its sub directory

$ rm -r -- **/*.txt

or (if the list too long)

$ for i in **/*.txt; do rm "$i"; done

No comments:

Post a Comment