1
I own a folder called work
and inside it I have 2 folders: p1
and p2
. How can I know if the folders p1
and p2
are empty ?
I have the following command
find . -type f -printf "%T@ %p\n" | sort -nr | cut -d\ -f2-
With this command I know if you have files inside the folders...then returns me in the terminal the folder and the file, if you have no files does not return anything.
How can I know what was the return? Example:
Se tem arquivo(s), print "Achou", senão print "Não achou"
.
Show, thank you very much!
– Roknauta