D
D
Digsecman2021-06-30 11:16:03
Command line
Digsecman, 2021-06-30 11:16:03

How to remove # in lines 50 and 54 using sed awk?

46 #------------------------------------------------ ------------------------------
47 # CONNECTIONS AND AUTHENTICATION
48 #------------- -------------------------------------------------- ---------------

49 # - Connection Settings -

50 #listen_addresses = 'localhost' # what IP address(es) to listen on;
51 # comma-separated list of addresses;
52 # defaults to 'localhost'; use '*' for all
53 # (change requires restart)
54 #port = 5432 # (change requires restart)

and besides, how can I enter my own value instead of localhost?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2021-06-30
@jcmvbkbc

sed "s/#listen_addresses = 'localhost'/listen_addresses = 'желаемый адрес'/;s/#port = 5432/port = желаемый_порт/"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question