Hi all,
Hoping you can assist with a problem – Not Casper specific though.
Background:
In our NetBoot image I have a script – Made droppable via Platypus.
This is used by my colleagues so aiming to make it fairly user-friendly.
What we do:
Drag a folder onto the app – Gives us for instance:
/Users/user
We then script that the dropped folder gets backed up via ditto to a server folder with todays date.
The problem being - using Ditto it puts the contents of the the user folder into the Todays Date folder.
How can I extract
/Users/david/
To another variable
/david/
So I can create a folder:
/Backups/2011-11-09/david/
We don’t always use it to backup home folders so the input could vary from one folder to five folders deep in the folder structure.
Presume SED can be used to extract the values between / and /
Any advice or suggestions are appreciated.
Thanks, David
