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 12-18-2011, 02:51 PM   #1
Gerco
Confirmed User
 
Gerco's Avatar
 
Join Date: Nov 2005
Posts: 2,052
Need and OS X Script to create folders from files.

Have thousands of videos in a folder. I need a script for OSX that can create a folder based on the files name, then put that file into a subdirectory of that created folder. The subdirectory would always have the same name, IE "source_video"

Example,

file named dirtyxyx.mov would create dirtyxyz>source_video>dirtyxyz.mov

This is so I can easily create the hierarchy I need for ElevatedX.

Thanks for any help.
__________________
Http://www.extremehole.com

**** CLOSED ****

400 HOURS of exclusive custom extreme content, already on external HD in Raw DV ready to encode.
over 150,000 exclusive images and more.
Gerco is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 02:58 PM   #2
mrgica
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Posts: 2,169
As a webmaster for over 10 years, doing repeating skit in folders and files over and over while building a site, I always hoped next windows version would be smarter and recognize repeating actions and ask me if I would allow it to do the job for me
40,000 MHz and still stupid as a cockroach.
__________________
Fuck it dude, lets go bowling

Last edited by mrgica; 12-18-2011 at 03:04 PM..
mrgica is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 02:59 PM   #3
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
for file in *.mov
do
dir=`echo "$file" | sed '[email protected]$@@'`
mkdir -p "$dir/source_video/"
mv "$file" "$dir/source_video/"
done

The above written on my Android phone and untested.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 02:59 PM   #4
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,642
you use a mac, so you are a gay de bum boy!
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 04:00 PM   #5
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Strange - why would elevatedX require such strict naming nomenclature?
Sorry, I'm not an eX user, but curious as to why they would force you to rename stuff like that to be able to import?

Surely the prog could figure out whether the file was a movie or pic, and create folders accordingly....
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 04:41 PM   #6
facialfreak
Confirmed User
 
facialfreak's Avatar
 
Join Date: Feb 2005
Location: Montreal
Posts: 3,018
Your running elevatedX on a MAC server
__________________

Managed Shared Hosting starting at $4.99/mo
Managed VPS starting at $29.99/mo


facialfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 04:43 PM   #7
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
anything that works with bash scripting should work on osx
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 04:45 PM   #8
Gerco
Confirmed User
 
Gerco's Avatar
 
Join Date: Nov 2005
Posts: 2,052
Quote:
Originally Posted by facialfreak View Post
Your running elevatedX on a MAC server
lol...no... My home systems are all macs. I'm doing organization and encoding local then uploading to the server (Mojohost) No sense uploading a master and having the server encode it when I can do the same here faster.
__________________
Http://www.extremehole.com

**** CLOSED ****

400 HOURS of exclusive custom extreme content, already on external HD in Raw DV ready to encode.
over 150,000 exclusive images and more.
Gerco is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2011, 04:46 PM   #9
Gerco
Confirmed User
 
Gerco's Avatar
 
Join Date: Nov 2005
Posts: 2,052
Quote:
Originally Posted by borked View Post
Strange - why would elevatedX require such strict naming nomenclature?
Sorry, I'm not an eX user, but curious as to why they would force you to rename stuff like that to be able to import?

Surely the prog could figure out whether the file was a movie or pic, and create folders accordingly....
Every CMS I have ever had requires their own form of a naming convention to upload. Nothing new. Sure, it would be amazing to be able to just upload a folder of video and have the system chunk it and sort it, but it doesn't work that way.
__________________
Http://www.extremehole.com

**** CLOSED ****

400 HOURS of exclusive custom extreme content, already on external HD in Raw DV ready to encode.
over 150,000 exclusive images and more.
Gerco 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.