Hi Team,
I need an help on the unix command, I need to write an single command which will display the number of files in the current directory.
I tried the below command , but not getting the desired output.
ls-al | grep "^d|^ " | wc -l
Any help is really appreciated.
Are you trying to just display files, and not links nor directories?
ls -la |grep -v "^d" |grep -v "^l"|wc