Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-13-2004, 07:26 AM   #1
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Computer Geeks & Programers

Ok I have another task I need help getting done & I know one of you HAS to know a solution.

I have numerous folders that I need to make sure have at least 40 images and one index page in it. (so 41 files total) Without going into the folder manually & checking the total, is there a program that will check or give me a report of what is included in all these folders? If there was a way to print a list of what's included in each folder, I'd be in heaven, however even if it just lists it, I'm saving alot of time.

Anyone have suggestions?

Thanks!
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 07:33 AM   #2
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
If you just want a list with what's in every folder (from the current folder), do this:

cd /domain/folder
find . -type d | xargs ls > list.txt

list.txt will look like this...

./porn:
gallery1.html gallery2.html index.html main.html

./pornxxx:
gallery1.html gallery2.html index.html main.html

./xxxporn:
gallery1.html gallery2.html index.html main.html

./pictures:
01.jpg 06.jpg 11.jpg 16.jpg tn01.jpg tn06.jpg tn11.jpg tn16.jpg
02.jpg 07.jpg 12.jpg 17.jpg tn02.jpg tn07.jpg tn12.jpg tn17.jpg
03.jpg 08.jpg 13.jpg 18.jpg tn03.jpg tn08.jpg tn13.jpg tn18.jpg
04.jpg 09.jpg 14.jpg 19.jpg tn04.jpg tn09.jpg tn14.jpg tn19.jpg
05.jpg 10.jpg 15.jpg 20.jpg tn05.jpg tn10.jpg tn15.jpg tn20.jpg



I'll play around alittle bit to get the 40 files thing right.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 07:34 AM   #3
garett
Confirmed User
 
Join Date: Mar 2004
Posts: 683
In the top level folder (the folder with all the other folders) you can do 'find . -print' to show the contents of all folders.

If you want to save the output to a file you can do 'find . -print > file.txt' or you can scroll the output with 'find . print | less'.

A coder could still write you a script that would count the files in each folder for you .. but that'll save you some time anyway.
__________________
garett is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 07:47 AM   #4
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Is this if it's on the server? Right now it's on my computer. Let me know if I have to upload the 6-7gb of files online first ;) Much appreciated!
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 07:54 AM   #5
garett
Confirmed User
 
Join Date: Mar 2004
Posts: 683
Yeah we did assume it was on the server lol

I'm not sure how you can do this on windows ... unless you can find a version of 'find' for win32.
__________________
garett is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 07:57 AM   #6
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Quote:
Originally posted by garett
Yeah we did assume it was on the server lol

I'm not sure how you can do this on windows ... unless you can find a version of 'find' for win32.
Hahah ok cool - will look for that then.


Any other suggestions?
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 07:58 AM   #7
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Umm windows? Ok, then I have no idea.

Good luck
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 08:04 AM   #8
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Quote:
Originally posted by swedguy
Umm windows? Ok, then I have no idea.

Good luck
I'm on my own?
Is it complicated for a programer to code something up to give me this report? *how expensive/cheap*?

Thanks!
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:44 AM   #9
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Bump for some
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:50 AM   #10
inabon
Good Old Fat Webmaster
 
inabon's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Boquete, Panamá
Posts: 970
the only think i can think of is setup that content as a site folder and in dreamweaver as a a site. then let dream weaver scan it (mind you it will take a long time)

if all goes well dream weaver should be able to give you an inventory on the assets window.

it should even tell you if there are broken links.

talking about dreamweaver MX
__________________
Whoever dies with most toys wins.
inabon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:52 AM   #11
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Quote:
Originally posted by inabon
the only think i can think of is setup that content as a site folder and in dreamweaver as a a site. then let dream weaver scan it (mind you it will take a long time)

if all goes well dream weaver should be able to give you an inventory on the assets window.

it should even tell you if there are broken links.

talking about dreamweaver MX
Inabon, do you think you can hit me up on ICQ so when I do it-if I have problems I can refer to someone? I'd appreciate it! *If you don't have ICQ, email would help* thanks
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:56 AM   #12
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
Well i can write a java program that checks this for you. Or a PHP script if its on a web server? hit me up.
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 10:01 AM   #13
Trixxxia
Confirmed User
 
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
Quote:
Originally posted by etech
Well i can write a java program that checks this for you. Or a PHP script if its on a web server? hit me up.

It's not on a server & won't be for awhile as I sort other little quirks with the files.

Hitting you up now!
Trixxxia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.