GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to count jpg files on a server? (https://gfy.com/showthread.php?t=941056)

ruff 11-30-2009 03:22 PM

How to count jpg files on a server?
 
How can I count the jpg files on my dedicated server? Is there a program out there I could use and would it put a huge load on the server while it's doing it?

fris 11-30-2009 03:30 PM

use find

Code:

find -name '*.jpg' | wc -l

ruff 11-30-2009 06:08 PM

Quote:

Originally Posted by fris (Post 16600873)
use find

Code:

find -name '*.jpg' | wc -l

Thanks
will give it a try

CYF 11-30-2009 09:28 PM

this one might work a little better :winkwink:

find / -name *jpg -print | wc -l

ruff 11-30-2009 10:15 PM

I have this one as well. Looks like I'm going to have to brush up on my SSH run commands.

find/ -type f -name"*.jpg" | wc -l

What I really want to know is how badly can I fuck up my server with my miniscule amount of knowledge.

CYF 11-30-2009 10:22 PM

Quote:

Originally Posted by ruff (Post 16602513)
I have this one as well. Looks like I'm going to have to brush up on my SSH run commands.

find/ -type f -name"*.jpg" | wc -l

What I really want to know is how badly can I fuck up my server with my miniscule amount of knowledge.

the version I posted will do what you want, and it's simpler to type than the other two. running find on your server won't do any harm.

Iron Fist 11-30-2009 11:27 PM

Quote:

Originally Posted by ruff (Post 16602513)
What I really want to know is how badly can I fuck up my server with my miniscule amount of knowledge.

Try this one: rm -rf ~/*

Let the partay begin! :thumbsup

CYF 11-30-2009 11:29 PM

Quote:

Originally Posted by sharphead (Post 16602642)
Try this one: rm -rf ~/*

Let the partay begin! :thumbsup

that would definitely fuck it up with a minuscule amount of knowledge :1orglaugh


All times are GMT -7. The time now is 01:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123