Hello Friends
I want to use sed command to pick a part of line. FOr example I only need the
/home_put1/bidds/myfo
part of following line
fish://ulavet@rits1.ula.com.tr/home_put1/bidds/myfo
How can I do this bu using sed command ?
Hello Friends
I want to use sed command to pick a part of line. FOr example I only need the
/home_put1/bidds/myfo
part of following line
fish://ulavet@rits1.ula.com.tr/home_put1/bidds/myfo
How can I do this bu using sed command ?
echo 'fish://ulavet@rits1.ula.com.tr/home_put1/bidds/myfo' | sed 's#.*//[^/]*/#/#'
You got a similar request in your other thread Using the part of a line as a variable? - Page 3 where nobody answered anymore. Please keep to that thread and do not open a new thread for the same problem, thanks.
Also the solutions provided might give you a clue how it could work with sed. Try it out yourself - you can't damage or harm anything.
Also use code tags instead of coloring everything in different colors. There are people that are color blind so code tags are usually sufficient and more appropriate.
To see how code tags are being used:
code tags <- click the link!
-closed-
Lucky you, there is an answer already.