I have the following alias defined in my .bashrc
alias lsfc='ls -l "$@" | tee /dev/tty | grep -v / | echo "File count: `wc -l`"'
which is intended to give me the number of files in a directory but is giving me that number +1 – because it’s also including the initial line giving the total size of the directory. How can I modify my alias to either exclude that first line or reduce the line count by one? I can’t even begin to work out what to Google for to try and solve this on my own.