$ find . -empty -type dTo delete empty directories:
$ find . -empty -type d -delete
If enter -type f instead of -type d, this command will search for empty files:
$ find . -empty -type fto delete empty files:
$ find . -empty -type f -delete
$ find . -empty -type dTo delete empty directories:
$ find . -empty -type d -delete
$ find . -empty -type fto delete empty files:
$ find . -empty -type f -delete
cat file1 file2 filen > outputfile
or you can use >> operator to append to file:cat *.txt > outputfile
cat file1 >> file2