Keep in mind:
${
*returns* the string with 'pattern' replaced with 'replace_with', it doesn't change the original string. So you have to do something like this:
string2=${string1/$pattern/$replace_with}
that will swap out 'pattern' with 'replace_with' in string1 and assign that new string to string2.
Any problems/issues, feel free to contact me. Reminder, there are online office hours tomorrow evening from 7pm to 8pm on Angel.
No comments:
Post a Comment