wow... you are genius! That is really helpful and I had never thought about using the saving to register.
However, i need the dir part of the $path but the last file.
thanks for the big hint though, i tried to save the same first part into register 1 and the second part into register 2....... but it returns the whole path...(dont' know ) if possible please fix it.. if i get my result..i'll post it here too
I know this is closed, but wanted to follow up since I missed you last time ;) Sorry
To get the basename, with sed, just so you have it for your stockpile, just change your expression:
Of course, you're right, basename and dirname are much simpler to use ;)
just wanna thank mike for the follow up.... i was banging my head to get to sed to work until i saw the first post (thank to who posted too)... and i looked it up "basename" (i m pretty new to shell scripting).. and i think there must be something does the opposite of basename... and wooooo!!!... dirname leads the way!!!... thanks again for helping