I am trying to convert the following string
California_Zephyr_5, on tm to California_Zephyr_5, ON TIME
when I use the following statement this way
# Search and replace
webData=$(echo "$webData" | sed 's/on tm/ON TIME/')
I get California_Zephyr_5, on tm
If I try it with the individual abbreviations, it seems to work for those:
webData=$(echo "$webData" | sed 's/on tm/ON TIME/')
results in California_Zephyr_5, on ON TIME
webData=$(echo "$webData" | sed 's/on tm/ON TIME/')
results in California_Zephyr_5, ON TIME tm
so I assume the issue is with the space.
Thanks in advance for your help.
There is one non-breaking space after
onand beforetm. See with GNUcat:Output:
or
Output:
I suggest to use:
Output: