Search Results

Search: Posts Made By: un1xl0ver_rwx
32,328
Posted By dinjo_jo
Use this command this is the fastest , even...
Use this command this is the fastest , even faster than find.

ls -lR . | egrep -c '^-'

The reason for difference is output in find and ls is ignoring hidden files.
32,328
Posted By cgkmal
Hi un1xl0ver_rwx, Another way could be: ls...
Hi un1xl0ver_rwx,

Another way could be:
ls -lR | awk '$7~/:/ && $1!~/^d/{print}' | wc -l
But the outputs are different between:
find . -type f | wc -land

ls -lR | awk '$7~/:/ &&...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy