I have a file (.htaccess) which contains below excerpt.<Files wp-login.php>order deny,allowdeny from allallow from 45.152.35.2</Files>I need to replace 45.152.35.2 with my current IP. But 45.152.35.2 is not static. I need to find the IP expression at allow from line and replace it with my current IP.I also need to get my current IP (75.152.35.4) from w command:12:13:07 up 21 days,  3:01,  1 user,  load average: 0.18, 0.13, 0.12USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHATroot     pts/0    75.152.35.4      14:29    0.00s  0.10s  0.00s wHow can I get current IP from w command and replace allow from line in .htaccess file?
How to Replace IP at Specific Line
text processing