I want to generate a file path based on URL path. The following is the URL and I want to change it to the one given below.
myurl="https://reports.company.com/users/clients/Daily/MonFile/"
/home/shantanu/company/reports.company.com/users/clients/Daily/MonFile/
The first two (/home/shantanu/) is my home directory.
Using sed,
Example: