The file has lines like:
AAA | AaaaA = "aaa -x 1"
BBB | BbbbB = "bbb -y 1"
which need to be replaced by:
AAA | AaaaA = "aaa -y 1"
BBB | BbbbB = "bbb -x 1"
I can't get sed to read the entire line.
It is planned to execute through a script, variables are used as strings. There are many such files, so it looks like this:
for i in $ files
do
sed $ i
done

-toпробел 1? - Mikesed 's/-x/-y/;s/-y/-x/'- Mike