I have file with input values in the form of: input-prefix:value.I need to replace input-prefix twice with different substitution and pass it to a command like my-command replace1-prefix:value replace2-prefix:value. Is this possible with a single command or do I have to script it?With one value it's simplecat my-input-file | sed 's/input-prefix/replace1-prefix/' | xargs -r my-commandTIA for any assistance,W.
single command to sed and use input value twice in different form
bash;shell;command line