![]() |
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. |
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. |
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. |
you use a mac, so you are a gay de bum boy!
|
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.... |
Your running elevatedX on a MAC server :eek2
|
anything that works with bash scripting should work on osx
|
Quote:
|
Quote:
|
All times are GMT -7. The time now is 06:14 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123