![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to wipe my ass
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Totally Borked
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Feb 2005
Location: Montreal
Posts: 3,018
|
Your running elevatedX on a MAC server
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Nov 2005
Posts: 2,052
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Nov 2005
Posts: 2,052
|
Quote:
__________________
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |