Search Results

Search: Posts Made By: miyoung999
2,230
Posted By miyoung999
Using Variables with SED
All
I am trying to produce the following in /etc/ssh/sshd_config,

# IPv4 only
#ListenAddress 0.0.0.0
# IPv4 & IPv6
ListenAddress ::

to

# IPv4 only
ListenAddress <user-entry>...
1,075
Posted By miyoung999
Remove the last occurance in a file
Hi,

I have hunted for an answer to this but still can't come up with a working solution.

How do I delete the last of a non unique line

The lines I am looking for is

case "$0" in
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy