Posts by Francisco • 46 points
1 post
-
3
votes2
answers112
viewsA: How to find out what is file and what is directory
Bash has a built-in test that might be what you’re looking for. In a terminal, in a folder, type: for i in * ; do if [ -d "$i" ] ; then echo "diretório - $i" ; else echo " arquivo - $i" ; fi ; done…