Hi
I am trying to use sed to retrieve part of my html file's path. I am having a hard time getting what I want. Could someone give me some help?
I want to retrieve the section after html and before the file name
For example if I have the following,
/home/folder1/html/home/house/Home.html@@/main/
What do I need to do to get
home/house
I have tried
echo /home/folder1/html/home/house/Home.html@@/main/ | sed 's/.*\/html\/\*.*\.html\).*\/1/'
but I can't remove the file name.
Any help will be greatly appreciated