Replacing the last word of a path using sed.

Posted by yael on Stack Overflow See other posts from Stack Overflow or by yael
Published on 2010-05-30T07:43:57Z Indexed on 2010/05/30 7:52 UTC
Read the original article Hit count: 132

Filed under:

I have the following: param="/var/tmp/test" I need to replace the word test with another word such as new_test

need a smart way to replace the last word after "/" with sed

© Stack Overflow or respective owner

Related posts about sed