question on functions in the directory
I apologize for all of the questions this week guys, My teacher has thrown some stuff at me that I am not used to since most of my work had been book work and I have just recently installed Linux on my pc, but anyways here goes:
What function would I use that lists the number of ordinary files, directories, block, special files, character special files, FIFO's and symbolic links in the working directory? I need to do this in two ways. How could I do this by using the first letter of the output of ls -l to determine a file's type? The second way is using the file type condition tests of the [[expression]] syntax to determine a file's type.
Once again I apologize for asking so many question this week and anything would help out, thanks guys.