I am trying to find a way to automate the creation of new folders with the relevant files inside them, for my business.
I run a law firm and each folder is named based on the year and the file number, for example 2024001, 2024002, etc.
Each matter has:
Folder: 20XXXXX
- Sub-folder Admin
-- which contains Timesheet.xlsx
- Sub-folder Client File
- Sub-folder Correspondence
- sub-folder Court
- 20XXXX - Telephone running sheet.docx
Currently I am manually duplicating the main folder and then renaming everything to the next file number.
I have done some searching and it seems I should be able to create a bash command that does this for me (and hopefully renames the telephone sheet to the next file number too?). However, all attempts thus far have been absolute failures. The closest I have come is:
But that means I have to put the timesheet and telephone sheet in manually, and I'm still having to manually run mkdir for each new matter.mkdir -p 2024061/{Admin,Client\ File,Correspondence,Court,}
Any pointers would be most welcome!