This should be easy: I want to run sed for a string string, not for the input file. If you are wondering why, for example, editing values ββstored in variables, text data is optional.
When I do this:
sed 's/,/','/g' "A,B,C"
where A, B, C is the letter I want to change to A ',' B ',' C
I get
Can't open A,B,C
As if he thinks A, B, C is a file.
I tried to execute its echo:
echo "A,B,C" | sed 's/,/','/g'
I get an invitation.
What is the right way to do this?
linux unix sed
amphibient Oct 24 2018-12-12T00: 00Z
source share