so let's say i have this sentence
It's {raining|snowing|cold} outside
What I want is to randomly extract a word between the brackets, which i did with awk -vRS="}" -vFS="|" '{print $2}' (still working to extract them randomly). The output usually is the second word, in our case snowing.
Thing is that the output is only snowing, and the actual output i want is something like It's snowing outside, so how do I extract any word from the brackets and replace with only one word.