Home > OS >  A shell script
A shell script

Time:11-18

Consult, write a script that will be a directory in the file into two categories, namely the empty file and is not empty, all the empty file name and full not empty files are saved to the name of the two text files, finally delete all empty files in this directory,

CodePudding user response:

The find. - empty - type f & gt; Empty filename. TXT
The find. - not - empty -type f & gt; Not empty filename. TXT
The find. - empty - type f - exec rm - rf {} \;
  • Related