12 lines
491 B
Markdown
12 lines
491 B
Markdown
Create an zsh function, it should in the current folder
|
|
|
|
when there is no subfolder
|
|
- create an folder named Chapter #1
|
|
- move all files and only files to the newly created folder
|
|
|
|
when there is already an folder with naming Pattern Chapter#{number}
|
|
- increment the {number} in the Foldername by 1 and create an new folder named Chapter #[newnumber}
|
|
- move all Files and only files to the newly created folder, do not touch files in other folders then the current one
|
|
|
|
|