2 ms·I wouldn't rely on a manual mean, considering that there is a built-in API: printf '%q' <string_to_quote>by pizza234 7y agoI wouldn't rely on a manual mean, considering that there is a built-in API: printf '%q' <string_to_quote>