----------------------------------------------------------------------------------
@MSGID: 2@dont-email.me> ce4bf622
@REPLY: <874jjqk812.fsf@nosuchdomain.example.com>
499e16ac
@REPLYADDR Chris Elvidge <chris@mshome.net>
@REPLYTO 2:5075/128 Chris Elvidge
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 2@dont-email.me>
@RFC-References:
<f1c33e51-6c3b-4e7a-ab15-fd694fdee755n@googlegroups.com> <874jjqk812.fsf@nosuchdomain.example.com>
@TZUTC: 0100
@PID: Mozilla/5.0 (X11; Linux x86_64; rv:52.0)
Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4
@TID: FIDOGATE-5.12-ge4e8b94
On 19/09/2023 07:10, Keith Thompson wrote:
> "
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.)
>
Seriously, you`re asking hongyi to check the documentation?
--
Chris Elvidge, England
I WILL NOT USE ABBREV.
--- Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
* Origin: A noiseless patient Spider (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