HOW TO CREATE THIS BAT FILE FOR MAC??
I am a novice at writing and using scripts. I am using a book to help with my data management workflow and it suggested using the following batch file. I've tried changing the file to .sh and changing all the "\" to "/" but its not working. Probably becuase I have no clue what I am doing. Can kind smart human willing to explain to me how to change this script correctly? Please!
Orginal Batch file from Windows:
REM workflow chapter 2 \ wfsetupsingle.bat jsl 2008-05-11.
REM directory structure for single person.
FOR /F "tokens=2,3,4 delims=/- " %%a in ("%DATE%") do set CDATE=%%c-%%a-%%b
md "- History\%cdate% project directory created"
md "- Hold then delete\- Delete when space is needed"
md "- Pre posted\- Files being prepared to post"
md "- To clean\- Files to be cleaned"
md "- Versions\- Waypoint versions to keep\"
md "Administration"
md "Documentation"
md "Posted\- Files should never be changed"
md "Posted\- Datasets\Source"
md "Posted\- Datasets\Derived"
md "Posted\- Text"
md "Resources"
md "Work\Text"
md "Work\- To do"
What I tried to do and failed with many error signs:
REM workflow chapter 2 \ wfsetupsingle.bat jsl 2008-05-11.
REM directory structure for single person.
FOR /F "tokens=2,3,4 delims=/- " %%a in ("%DATE%") do set CDATE=%%c-%%a-%%b
md "- History/%cdate% project directory created"
md "- Hold then delete/- Delete when space is needed"
md "- Pre posted/- Files being prepared to post"
md "- To clean/- Files to be cleaned"
md "- Versions/- Waypoint versions to keep/"
md "Administration"
md "Documentation"
md "Posted/- Files should never be changed"
md "Posted/- Datasets\Source"
md "Posted/- Datasets\Derived"
md "Posted- Text"
md "Resources"
md "Work/Text"
md "Work/- To do"
MacBook Pro, iOS 10.3.1