Search Results

Search: Posts Made By: Ubuntu-UK
9,880
Posted By Ubuntu-UK
That works. Many thanks.
That works.

Many thanks.
9,880
Posted By Ubuntu-UK
Bash string replacement - how to use regex?
Hello

I have a bash script where I need to do a substring replacement like this:
variable2=${variable1/foo/bar}

However, I only want "foo" replaced if it is at the end of the line.

However,...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy