[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/g/ - Technology

Make /g/ Great Again

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
dicesidesmodifier

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov, swf, pdf
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: d7d2dfbecb195ad⋯.jpg (42.31 KB,640x633,640:633,1504005319030.jpg)

 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

bump

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

802504

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

>>687199

>>802504

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

734331

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

1067811

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

717447

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

File: 78646fdb558de12⋯.jpg (11.87 KB,225x225,1:1,me.jpg)

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

File: 12aa5773f365f84⋯.png (84.22 KB,500x416,125:104,blacked-com-macron-wants-i….png)

>>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

find / | wc -l

286271

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

File: f66d2d6352ae646⋯.jpg (102.22 KB,1041x789,347:263,everythingwentbetterthamo3….jpg)

3502164

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

>>12686

ls -R | nl

661760

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

7346234

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]