Friday, April 8, 2011

How to replace a string in a string variable in bash without using sed, awk or perl

Bash provides a way to replace a string
${<STRING>//<PATTERN TO FIND IN STRING>/<STRING TO REPLACE>}

No comments:

Post a Comment