Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I often find myself creating the same structure by hand in finder for new projects, how can I quicken this process with a single Terminal Command?

Example of structure & command:

Terminal $ cf Project_Name //cf for CreateFolder

Creates a folder in the current Path with current Date -> YYMMDD Project_Name

In that folder a custom structure:

_CI

_layout

_layout/_screens

_material

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Something like

mkdir -p "`date "+%Y%m%d"` Project_Name"/_layout/_screens

should do the trick. It is plain vanilla unix.

share|improve this answer
    
Great thanks, I added this now to my .functions cf () { mkdir -p "date "+%y%m%d" $1"/_layout/_screens mkdir -p "date "+%y%m%d" $1"/_material/ cd "date "+%y%m%d" $1" open . } –  Florian Jan 13 '13 at 13:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.