The file I want to modify belongs to root
. I want to change this file with a sudo-er
sudo sed -i 's/Accept .* LC_\*$/& GIT_*/' /etc/ssh/sshd_config
(trying to append GIT_*
to the Accept
sshd config directive)
But the file remains unchanged:
$ grep Accept /etc/ssh/sshd_config
AcceptEnv LANG LC_*
You missed
.*
afterAccept
: