----------------------------------------------------------------------------------
@MSGID: <874jjqk812.fsf@nosuchdomain.example.com>
499e16ac
@REPLY:
<f1c33e51-6c3b-4e7a-ab15-fd694fdee755n@googlegroups.com> dabc9104
@REPLYADDR Keith Thompson
<Keith.S.Thompson+u@gmail.com>
@REPLYTO 2:5075/128 Keith Thompson
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<874jjqk812.fsf@nosuchdomain.example.com>
@RFC-References:
<f1c33e51-6c3b-4e7a-ab15-fd694fdee755n@googlegroups.com>
@TZUTC: -0700
@PID: Gnus/5.13 (Gnus v5.13) Emacs/27.2
(gnu/linux)
@TID: FIDOGATE-5.12-ge4e8b94
"
hongy...@gmail.com" <
hongyi.zhao@gmail.com> writes:
> I noticed the following usage here [1]:
>
> sed -i `/%sudo/c %sudo ALL=(ALL:ALL) NOPASSWD:ALL` /etc/sudoers
> visudo -c
>
> But I`m puzzled by the `c` that appeared in the `/%sudo/c` part
of the sed command above. Any tips will be helpful.
>
> [1]
https://blog.51cto.com/u_4820306/5425575
The `c` command is a GNU extension. Type "info sed" for documentation,
or search online for GNU sed documentation if you don`t have it
installed locally.
(Seriously, I wonder why checking the documentation wasn`t your first
thought before posting here.)
--
Keith Thompson (The_Other_Keith)
Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
--- Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Origin: None to speak of (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441