I\'ve got a bunch of files that have sentences ending like this: \\@.Next sentence. I\'d like to insert a space after the period.
\\@.Next sentence
Not all occurrences of
Use this sed command:
sed -i.bak -E 's/(\\@\.)([A-Z])/\1 \2/g' *.tex
OR better:
sed -i.bak -E 's/(\\@\.)([^ \t])/\1 \2/g' *.tex
which will insert space if \@. is not followed by any white-space character (not just capital letter).
\@.