No.9498
ls -R / | wc -l
post results
687199
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.9784
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.9785
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.9791
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10854
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10858
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10951
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10985
>>10957
Just count the blank lines, then subtract it from the non-blank count and you will get the actual count.
$blank=`ls -R | grep '^$' | wc -l`
$full=`ls -R | wc -l`
> echo "$(($full-$blank))"
Way easier than the bullshit line splitting algorithm you made.
Alternatively, if you have indexing going:
> locate * | wc -l
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10986
>>10985
>'^$'
why not ls -R | grep -v '^$' | wc -l
??
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10987
>>10985
>"just run ls across the entire filesystem twice, bro!"
>>10986
gj. I only got as far as the opening code tag.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10988
Get on my level noobs.
$ ls -R | sort | uniq -c | sort -g | sed \$d | awk '{sum+=$1;} END{print sum;}'
>pic absolutely related
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10989
>>10988
>$ ls -R | sort | uniq -c | sort -g | sed \$d | awk '{sum+=$1;} END{print sum;}'
Wow. Bash-anon is kicking ass of every one in thread.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10991
>>10989
>ls -R
'ls' never has business in any real oneliner.
no sysadmin would use it.
>awk
may as well use Perl and skip most/all of the rest of the oneliner.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.10993
>>10988
You should never need to use that many pipes, ever.
find -printf '.' | wc -c
You can also use this one for a pure bash solution, but it's less accurate and much slower
shopt -s nullglob; filec=(**/*); echo ${#filec[@]}
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.11002
>>10993
$ find -printf '.'
find: illegal option -- p
Checkmate faggot
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.11003
>>10993
$ filec
-bash: filec: command not found
Your pure bash is about as pure as Macron's asshole after an evening gala at the Élysée Palace.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.11005
>>11002
Stop using outdated software
>>11003
Stop being a faggot
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.11006
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.11008
>>11002
Are you some kind of mac homosexual or something? Works for me.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.11191
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.12686
$ ls -R / 2> /dev/null | wc -l
1280631
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.12690
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.13592
This took fucking forever
$ fd . ~ > files-2020-06-25.txt
$ wc -l files-2020-06-25.txt
14379833 files-2020-06-25.txt
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.13796
updatedb
locate --statistics | awk '/: [0-9]+$/ { print $3 }'
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.13802
# ls -R /|wc -l
10716699
Fortunately I don't have NFS servers on the network these days..
# find / -mtime +7305 2>/dev/null|wc -l
161883
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.13810
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.